You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VS2022多启动项目异常:仅Angular启动,ASP.NET Core无法启动

问题

使用VS 2022 Professional 17.2.0,按照官方教程创建ASP.Net Core+Angular项目,设置多项目启动时,仅Angular CLI执行ng start命令,ASP.NET Core项目始终无法启动;禁用Angular项目后,.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 ------

相关配置

  • 多项目启动设置:多项目启动设置
  • 配置管理器:配置管理器
  • .NET调试设置:.NET调试设置
  • Visual Studio工具栏:Visual Studio工具栏

proxy.conf.js 关键配置

target: "https://localhost:7049",

launchSettings.json 关键配置

"applicationUrl": "https://localhost:7049;https://localhost:5001",

排查方向

怀疑杀毒软件(AV)存在拦截,但未找到明确解决方案。


解决方案

若遇到此问题,请优先检查以下两点:

  1. 确认项目相关脚本的执行权限是否正常,确保Visual Studio有足够权限启动ASP.NET Core进程;
  2. 检查杀毒软件或安全防护工具是否拦截了ASP.NET Core项目的启动进程,可临时禁用防护工具测试,若恢复正常则需将项目目录或进程加入白名单。

内容的提问来源于stack exchange,提问作者Kaze

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.25 13:15:37