官术网_书友最值得收藏!

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

  1. Start Visual Studio Code; no folder has been opened in the Explorer viewlet yet:
  1. Click on Open Folder, and then click on Create Folder. Name the folder aspnetcoremvcsample and click on OK:
  1. 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:
  1. 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:
  1. Modify the launch.json file in the .vscode folder and set the debugger to .NET Core Launch (web):
  1. 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:
主站蜘蛛池模板: 乌兰浩特市| 黄浦区| 宜城市| 三门峡市| 保康县| 赞皇县| 普格县| 镇赉县| 岳阳市| 共和县| 东丽区| 武陟县| 汉中市| 阜城县| 台安县| 淅川县| 三穗县| 沭阳县| 南澳县| 马山县| 五华县| 博白县| 苏州市| 肃北| 平利县| 威信县| 衡阳县| 井陉县| 安岳县| 罗定市| 沧州市| 桂林市| 安丘市| 高尔夫| 宁武县| 青铜峡市| 丽江市| 大石桥市| 揭东县| 阿拉尔市| 宁明县|