MSBuild 并不总是创建 .precompiled 文件

发布于 2025-01-16 20:43:38 字数 891 浏览 4 评论 0原文

我的构建服务器出现问题。我正在调用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

A君 2025-01-23 20:43:38

由于未能成功找到不一致行为的原因,我不得不设置一个新服务器来运行编译。

Not having success in finding the cause of the inconsistent behavior, I had to set up a new server to run the compilation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文