简体   繁体   中英

How to run ASP.NET MVC with Angular project in VS Code?

I am trying to build a CRUD application with ASP.NET MVC in Visual Studio with Angular and want to run the complete project only with VS Code, not with Visual Studio. Any solution for this purpose?

(c#) Open the the folder with your .csproj file in your VS Code.

  1. dotnet restore
  2. dotnet run or dotnet watch

For more: https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-run

(angular) Open the the folder with your package.json file in another VS Code instance (or the same and open a new terminal).

  1. npm install
  2. ng serve

For more: https://cli.angular.io/

You should have angular cli and dotnet installed on your machine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM