- Learning ASP.NET Core 2.0
- Jason De Oliveira Michel Bruchet
- 196字
- 2021-07-02 22:04:17
Creating your first ASP.NET Core 2.0 application in Visual Studio Code
You will now see how to initialize your first ASP.NET Core 2.0 application using the built-in Visual Studio Code terminal window. Then, you are going to install all of the necessary extensions to be able to run and debug it at the end:
- Start Visual Studio Code; no folder has been opened in the Explorer viewlet yet:

- Click on Open Folder, and then click on Create Folder. Name the folder aspnetcoremvcsample and click on OK:

- Display the integrated terminal window via View | Integrated Terminal and initialize a new ASP.NET Core 2.0 MVC project by entering dotnet new mvc:

- When opening any of the C# files, you are asked to install additional project dependencies and Visual Studio Code extensions. Do this to be able to build, run, and debug your application in the next steps:

- Modify the launch.json file in the .vscode folder and set the debugger to .NET Core Launch (web):

- Set a breakpoint somewhere in the code and start debugging by either pressing F5 or clicking on the green flash in the Debugging viewlet. Try hitting the breakpoint; everything should work correctly:

推薦閱讀
- 流量的秘密:Google Analytics網站分析與優化技巧(第2版)
- JavaScript+jQuery網頁特效設計任務驅動教程(第2版)
- Magento 2 Theme Design(Second Edition)
- JavaScript 網頁編程從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- 機器人Python青少年編程開發實例
- Git高手之路
- Learning ArcGIS Pro
- SharePoint Development with the SharePoint Framework
- Java Web程序設計任務教程
- R數據科學實戰:工具詳解與案例分析
- Hands-On Kubernetes on Windows
- SQL Server 2008中文版項目教程(第3版)
- Android移動應用開發項目教程
- Learning Kotlin by building Android Applications
- Learning Concurrency in Python