MSBuild 并不总是创建 .precompiled 文件
我的构建服务器出现问题。我正在调用 MSBuild 来构建 Web 项目,该过程运行,它甚至显示某些视图的 ASPNETCOMPILER 警告,视图正在“清理”,但 .precompiled 文件和 DLL 没有保存到bin 文件夹。
一些信息: MSBuild版本:16.11.0.36601(VS 2019默认版本),服务器:Windows Server 2012 R2 Standard。
这是我正在使用的命令(适用于其他计算机):
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe" "[PATH]\Web.sln" /t:Clean;Rebuild /p:Configuration=Release /p:BuildInParallel=true /p:PrecompileBeforePublish=true /p:EnableUpdateable=false /p:DebugSymbols=false /p:DeployOnBuild=true
主要问题是我需要 MSBuild 在每次运行时始终生成文件,并且它偶尔会发生一次。
我使用的一些其他参数没有成功:
/p:OutputPath=bin
/p:UseMerge=true /p:WDPMergeOption="MergeAllOutputsToASingleAssembly" /p:SingleAssemblyName="WebCompiled"< /code>
Build
而不是 Rebuild
我尝试使用我的管理员帐户和相同的管理员权限运行该命令 结果。
I'm having an issue with my Build server. I'm calling MSBuild for Building a Web Project, the process runs, it even shows ASPNETCOMPILER
warnings for some views, the views are getting 'cleaned' but the .precompiled files and DLLs are not getting saved to the bin folder.
Some information:
MSBuild version: 16.11.0.36601 (VS 2019 default version), Server: Windows Server 2012 R2 Standard.
This is the command I'm using (works on other machines):
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe" "[PATH]\Web.sln" /t:Clean;Rebuild /p:Configuration=Release /p:BuildInParallel=true /p:PrecompileBeforePublish=true /p:EnableUpdateable=false /p:DebugSymbols=false /p:DeployOnBuild=true
The main issue is I need MSBuild to generate the files always on every run and it's happening once in a while.
Some other parameters I've used with no success:
/p:OutputPath=bin
/p:UseMerge=true /p:WDPMergeOption="MergeAllOutputsToASingleAssembly" /p:SingleAssemblyName="WebCompiled"
Build
instead of Rebuild
I've tried to run the command also with Admin permissions with my Administrator account and the same result.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于未能成功找到不一致行为的原因,我不得不设置一个新服务器来运行编译。
Not having success in finding the cause of the inconsistent behavior, I had to set up a new server to run the compilation.