如何在 VS Code 中 运行 ASP.NET MVC 与 Angular 项目?
How to run ASP.NET MVC with Angular project in VS Code?
我正在尝试使用 ASP.NET MVC 在 Visual Studio 中使用 Angular 构建一个 CRUD 应用程序,并希望 运行 仅使用 VS 代码而不是使用Visual Studio。为此目的有什么解决方案吗?
(c#) 在 VS Code 中打开包含 .csproj
文件的文件夹。
dotnet restore
dotnet run
或 dotnet watch
更多:https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-run
(angular) 在另一个 VS Code 实例中打开包含 package.json
文件的文件夹(或打开一个新终端)。
npm install
ng serve
您的机器上应该安装了 angular cli
和 dotnet
。
我正在尝试使用 ASP.NET MVC 在 Visual Studio 中使用 Angular 构建一个 CRUD 应用程序,并希望 运行 仅使用 VS 代码而不是使用Visual Studio。为此目的有什么解决方案吗?
(c#) 在 VS Code 中打开包含 .csproj
文件的文件夹。
dotnet restore
dotnet run
或dotnet watch
更多:https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-run
(angular) 在另一个 VS Code 实例中打开包含 package.json
文件的文件夹(或打开一个新终端)。
npm install
ng serve
您的机器上应该安装了 angular cli
和 dotnet
。