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

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:
主站蜘蛛池模板: 中山市| 苍山县| 台安县| 封丘县| 永仁县| 墨竹工卡县| 巢湖市| 徐闻县| 金堂县| 通渭县| 孟津县| 金山区| 九江市| 阿拉善右旗| 延吉市| 闽侯县| 健康| 湘潭县| 郎溪县| 互助| 大关县| 枣阳市| 长岭县| 兴义市| 康平县| 邻水| 宿迁市| 甘洛县| 满洲里市| 金堂县| 新晃| 濮阳市| 故城县| 祁东县| 苍梧县| 安塞县| 台北市| 辽阳市| 金溪县| 岳阳县| 全椒县|