- 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:

推薦閱讀
- 大學計算機基礎(第三版)
- Microsoft Dynamics 365 Extensions Cookbook
- 青少年軟件編程基礎與實戰(圖形化編程三級)
- 動手玩轉Scratch3.0編程:人工智能科創教育指南
- Quarkus實踐指南:構建新一代的Kubernetes原生Java微服務
- Oracle Database 12c Security Cookbook
- C++新經典
- Visual Basic程序設計
- Java零基礎實戰
- Spring MVC+MyBatis開發從入門到項目實踐(超值版)
- Learning Material Design
- 零基礎學C語言程序設計
- Python 3 數據分析與機器學習實戰
- 編程改變生活:用Python提升你的能力(進階篇·微課視頻版)
- 監控的藝術:云原生時代的監控框架