【发布时间】:2022-07-22 18:20:58
【问题描述】:
我正在使用 VS 2022 Professional 2022 (17.2.0)。
我想在 VS 中使用 Angular 创建一个 ASP.Net Core 应用程序,并为此使用了 Microsoft 教程。 https://docs.microsoft.com/en-us/visualstudio/javascript/tutorial-asp-net-core-with-angular?view=vs-2022
当我想一次性启动多个项目时,只有 Angular CLI 会启动 ng start 命令,但 ASP.NET Core 项目永远不会启动。 当我禁用内部的 Angular 项目时,Multiple Startprojects,.Net Core 控制台将启动。
Creation started...
1>------ Build started: Project: ConverterBackend, Configuration: Debug Any CPU ------
2>------ Build started: Project: Converter, Configuration: Debug Any CPU ------
1>Analyzer tools are skipped to speed up the build. You can run the Build or Rebuild command to run the analyzer.
1>ConverterBackend -> C:\Optimization\Converter\ConverterBackend\bin\Debug\net6.0\ConverterBackend.dll
3>------ Deployment started: Project: Converter, Configuration: Debug Any CPU ------
设置:
proxy.conf.js
target: "https://localhost:7049",
launchSettings.json
"applicationUrl": "https://localhost:7049;https://localhost:5001",
我希望有人有解决方案或遇到同样的错误,因为我找不到任何关于此的信息。 这可能是 AV 问题吗?
解决方案: 如果您遇到此问题,请检查脚本执行权限以及 AV 是否阻止了某些内容。
【问题讨论】:
标签: c# asp.net angular visual-studio-2022