【发布时间】:2022-10-25 00:40:09
【问题描述】:
我们正在使用 Visual Studio 22 使用 asp.net core 6 开发一个项目,并且构建过程卡在
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\Roslyn\csc.exe
构建成功完成,但速度很慢。构建时间约 1 分 30 秒。 如何减少构建过程时间? 任何帮助将非常感激。
【问题讨论】:
-
您最好收集 MSBuild 二进制日志以了解有关所花费时间的更多信息,msbuildlog.com,如果它还确认 C# 编译时间过长,至少它为您提供了使用的参数,然后您可以重现缓慢并进一步排除故障。
-
@LexLi MSBuild 日志查看器显示 Csc ( CoreCompile ) 从 1:30 花费 1:22
标签: asp.net visual-studio msbuild asp.net-core-6.0