dotnet --version
from a terminal window)-l
flag to our dotnet new
command:dotnet new -l
Short Name
in the command in your terminal window.dotnet new mvc
code .
from your terminal window.Yes
, you'll see a .vscode
folder added to your project, which includes the following:launch.json
- where Code keeps debugging configuration informationtasks.json
- where you can define any tasks that you need run - for example, dotnet build
or dotnet run
.tasks.json
looks like out of the box.dotnet build
from the command line. In Windows, I can hit Ctrl
+ Shift
+ B
much like I can in regular Visual Studio. Try it out!About
controller action in Controllers/HomeController.cs
.http://localhost:5000
.About
link in the top menu so that I can enter the About
action in the Home
controller.ViewData
message.null
now because I haven't executed that line of code yet. Once I step into the method, you'll see the value of ViewData['Message']
.mssql
in the Extensions panel and you should have no problem finding it.Ctrl
+ Shift
+ P
) and search for sql
. You'll see all the commands the extension has provided for you.MS SQL : Connect
from the command menu and follow the prompts.(localhost)MSSQLLocalDB.
You can do this, or if hosted in Azure the mydb.database.windows.net address, or even a remote IP address.Ctrl
+ Shift
+ E
).SELECT
to get all your movies (obviously, a blanket SELECT
is not recommended for performance reasons but this is pretty harmless since we're querying five movies).