8

我在让我的 CI 构建在 TeamCity 下工作时遇到问题。我有类似的项目可以构建,所以我不认为这本身是 TeamCity 问题,但我已经看了这么多我开始盲目编码,我担心我可能会错过明显的. 我会欣赏另一种观点。

我正在处理的项目(ASCOM 驱动程序)有一个 Wix 设置项目和一个托管自定义操作。自定义操作有一个使用 MSpec 的单元测试项目。这一切都在我的工作站上构建良好,测试运行并通过,一切都很好。在 TeamCity 上,该解决方案甚至无法编译。我很高兴 TeamCity 可能突出了我构建中的一个弱点,但我不明白这里发生了什么。

似乎正在发生的事情是构建在构建过程中删除了一个项目输出(Wix 自定义操作),这意味着引用它的后续项目无法构建。以下是日志输出中一些经过编辑的亮点:

设置项目开始构建...

715 [01:21:20]:[MSBuild] 产品设置\产品 Setup.wixproj:构建目标:重建(11 秒)
716 [01:21:20]:[产品设置\产品设置.wixproj] CoreClean
717 [01:21:20]:[CoreClean] 删除
[...]

然后它解析引用并注意到需要构建自定义操作项目......

729 [01:21:20]:[产品设置\产品设置.wixproj] ResolveProjectReferences (2s)
730 [01:21:21]:[ResolveProjectReferences] MSBuild (2s)
731 [01:21:21]:[MSBuild] Wix.RegisterAscomDeviceProfiles\Wix.RegisterAscomDeviceProfiles.csproj:构建默认目标 (2s)
732 [01:21:21]:[Wix.RegisterAscomDeviceProfiles\Wix.RegisterAscomDeviceProfiles.csproj] CheckPrerequisites
733 [01:21:21]:[Wix.RegisterAscomDeviceProfiles\Wix.RegisterAscomDeviceProfiles.csproj]RestorePackages

然后自定义操作项目构建,CA 程序集被打包,输出复制到输出目录......

739 [01:21:21]:[核心编译] Csc
740 [01:21:21]: [Csc] C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /platform:AnyCPU /errorreport:prompt /define :DEBUG;TRACE /highentropyva- /reference:C:\BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0.2.1\lib\net35\ASCOM.Astrometry.dll /reference:C:\BuildAgent\work\bf752c89b3da5535\ packages\ASCOM.Platform.6.0.2.1\lib\net35\ASCOM.Attributes.dll /reference:C:\BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0.2.1\lib\net35\ASCOM.Controls.dll /reference:C:\BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0.2.1\lib\net35\ASCOM.DeviceInterfaces.dll /reference:C:\BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0 .2.1\lib\net35\ASCOM.DriverAccess.dll /reference:C:\BuildAgent\work\bf752c89b3da5535\packages\ASCOM。Platform.6.0.2.1\lib\net35\ASCOM.Exceptions.dll /reference:C:\BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0.2.1\lib\net35\ASCOM.SettingsProvider.dll /reference:C :\BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0.2.1\lib\net35\ASCOM.Utilities.dll /reference:C:\BuildAgent\work\bf752c89b3da5535\packages\DTF-Unofficial.3.6.2928\lib \Microsoft.Deployment.WindowsInstaller.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll /reference:C:\BuildAgent\work\bf752c89b3da5535\CompanyTools\bin\Debug\CompanyTools.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System. dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /reference:C: \BuildAgent\work\bf752c89b3da5535\packages\TiGra.Diagnostics.1.1.57\lib\net35\TiGra.Diagnostics.dll /debug+ /debug:full /filealign:512 /out:obj\Debug\Wix.RegisterAscomDeviceProfiles.dll /target :library /utf8output CustomAction.cs Properties\AssemblyInfo.cs SetupTraceListener.cscs SetupTraceListener.cscs SetupTraceListener.cs
741 [01:21:21]: [Csc] CustomAction.cs(28, 23): 警告 CS0169: 从未使用过“Wix.RegisterAscomDeviceProfiles.CustomActions.driverId”字段
742 [01:21:21]: [Csc] CustomAction.cs(29, 23): 警告 CS0169: 从未使用过“Wix.RegisterAscomDeviceProfiles.CustomActions.driverName”字段
743 [01:21:21]:[Wix.RegisterAscomDeviceProfiles\Wix.RegisterAscomDeviceProfiles.csproj] PackCustomAction (1s)
744 [01:21:21]:[PackCustomAction] 执行(1 秒)
745 [01:21:21]:[执行]“C:\Program Files (x86)\WiX Toolset v3.7\bin\..\sdk\MakeSfxCA.exe”“C:\BuildAgent\work\bf752c89b3da5535\Wix .RegisterAscomDeviceProfiles\obj\Debug\Wix.RegisterAscomDeviceProfiles.CA.dll" "C:\Program Files (x86)\WiX Toolset v3.7\bin\..\sdk\x86\SfxCA.dll" "C:\BuildAgent\ work\bf752c89b3da5535\Wix.RegisterAscomDeviceProfiles\obj\Debug\Wix.RegisterAscomDeviceProfiles.dll" "C:\BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0.2.1\lib\net35\ASCOM.Astrometry.dll;C: \BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0.2.1\lib\net35\ASCOM.Attributes.dll;C:\BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0.2.1\lib\net35\ ASCOM.Controls.dll;C:\BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0.2。1\lib\net35\ASCOM.DeviceInterfaces.dll;C:\BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0.2.1\lib\net35\ASCOM.DriverAccess.dll;C:\BuildAgent\work\bf752c89b3da5535\ packages\ASCOM.Platform.6.0.2.1\lib\net35\ASCOM.Exceptions.dll;C:\BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0.2.1\lib\net35\ASCOM.SettingsProvider.dll;C :\BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0.2.1\lib\net35\ASCOM.Utilities.dll;C:\BuildAgent\work\bf752c89b3da5535\packages\DTF-Unofficial.3.6.2928\lib\Microsoft .Deployment.WindowsInstaller.dll;C:\BuildAgent\work\bf752c89b3da5535\CompanyTools\bin\Debug\CompanyTools.dll;C:\BuildAgent\work\bf752c89b3da5535\packages\TiGra.Diagnostics.1.1.57\lib\net35\TiGra .Diagnostics.dll;C:\BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0.2.1\lib\net35\ASCOM.Internal.Extensions.dll;C:\BuildAgent\work\bf752c89b3da5535\Wix.RegisterAscomDeviceProfiles\CustomAction.config"

CA 构建完成,Setup 构建恢复:

803 [01:21:23]: [产品设置\产品设置.wixproj] 编译 (1s)
804 [01:21:23]:[编译]蜡烛(1s)
805 [01:21:23]:[Candle] C:\Program Files (x86)\WiX Toolset v3.7\bin\candle.exe -dDebug -d"DevEnvDir=*未定义,如果不是从 Visual Studio 中构建*" -dSolutionDir=C:\BuildAgent\work\bf752c89b3da5535\ -dSolutionExt=.sln -dSolutionFileName=Product.sln -dSolutionName=Product -dSolutionPath=C:\BuildAgent\work\bf752c89b3da5535\Product.sln -dConfiguration=调试 -dOutDir=bin \Debug-x86\ -dPlatform=x86 -d"ProjectDir=C:\BuildAgent\work\bf752c89b3da5535\Product Setup\\" -dProjectExt=.wixproj -d"ProjectFileName=Product Setup.wixproj" -d"ProjectName=Product Setup " -d"ProjectPath=C:\BuildAgent\work\bf752c89b3da5535\Product Setup\Product Setup.wixproj" -d"TargetDir=C:\BuildAgent\work\bf752c89b3da5535\Product Setup\bin\Debug-x86\\" -dTargetExt =.msi -d"TargetFileName=Product Setup.msi" -d"TargetName=Product Setup" -d"TargetPath=C:\BuildAgent\work\bf752c89b3da5535\Product Setup\bin\Debug-x86\Product Setup.msi" -dDeviceType1.Configuration=Debug - d"DeviceType1.FullConfiguration=Debug|AnyCPU" -dDeviceType1.Platform=AnyCPU -dDeviceType1.ProjectDir=C:\BuildAgent\work\bf752c89b3da5535\DeviceType1\ -dDeviceType1.ProjectExt=.csproj -dDeviceType1.ProjectFileName=DeviceType1.csproj -dDeviceType1。 ProjectName=DeviceType1 -dDeviceType1.ProjectPath=C:\BuildAgent\work\bf752c89b3da5535\DeviceType1\DeviceType1.csproj -dDeviceType1.TargetDir=C:\BuildAgent\work\bf752c89b3da5535\DeviceType1\bin\Debug\ -dDeviceType1.TargetExt=.dll - dDeviceType1.TargetFileName=ASCOM.Product.DeviceType.dll -dDeviceType1.TargetName=ASCOM.Product.DeviceType -dDeviceType1.TargetPath=C:\BuildAgent\work\bf752c89b3da5535\DeviceType1\bin\Debug\ASCOM.Product.DeviceType.dll -dProductCommander.Configuration=Debug -d"ProductCommander.FullConfiguration=Debug|AnyCPU" -dProductCommander.Platform=AnyCPU -d"ProductCommander.ProjectDir= C:\BuildAgent\work\bf752c89b3da5535\Product Commander\\" -dProductCommander.ProjectExt=.csproj -dProductCommander.ProjectFileName=ProductCommander.csproj -dProductCommander.ProjectName=ProductCommander -d"ProductCommander.ProjectPath=C:\BuildAgent\work\bf752c89b3da5535 \ProductCommander\ProductCommander.csproj" -d"ProductCommander.TargetDir=C:\BuildAgent\work\bf752c89b3da5535\Product Commander\bin\Debug\\" -dProductCommander.TargetExt=.exe -d"ProductCommander.TargetFileName=Product Commander。 exe" -d"ProductCommander.TargetName=产品指挥官"-d"ProductCommander.TargetPath=C:\BuildAgent\work\bf752c89b3da5535\Product Commander\bin\Debug\Product Commander.exe" -dProductServer.Configuration=Debug -d"ProductServer.FullConfiguration=Debug|AnyCPU" -dProductServer.Platform= AnyCPU -d"ProductServer.ProjectDir=C:\BuildAgent\work\bf752c89b3da5535\Product Server\\" -dProductServer.ProjectExt=.csproj -dProductServer.ProjectFileName=ProductServer.csproj -dProductServer.ProjectName=ProductServer -d"ProductServer.ProjectPath= C:\BuildAgent\work\bf752c89b3da5535\Product Server\ProductServer.csproj" -d"ProductServer.TargetDir=C:\BuildAgent\work\bf752c89b3da5535\Product Server\bin\Debug\\" -dProductServer.TargetExt=.exe -dProductServer .TargetFileName=ASCOM.Product.exe -dProductServer.TargetName=ASCOM.Product -d"ProductServer.TargetPath=C:\BuildAgent\work\bf752c89b3da5535\Product Server\bin\Debug\ASCOM.Product.exe" -dCompanyTools.Configuration=Debug -d"CompanyTools.FullConfiguration=Debug|AnyCPU" -dCompanyTools.Platform=AnyCPU -dCompanyTools.ProjectDir=C: \BuildAgent\work\bf752c89b3da5535\CompanyTools\ -dCompanyTools.ProjectExt=.csproj -dCompanyTools.ProjectFileName=CompanyTools.csproj -dCompanyTools.ProjectName=CompanyTools -dCompanyTools.ProjectPath=C:\BuildAgent\work\bf752c89b3da5535\CompanyTools\CompanyTools.csproj - dCompanyTools.TargetDir=C:\BuildAgent\work\bf752c89b3da5535\CompanyTools\bin\Debug\ -dCompanyTools.TargetExt=.dll -dCompanyTools.TargetFileName=CompanyTools.dll -dCompanyTools.TargetName=CompanyTools -dCompanyTools.TargetPath=C:\BuildAgent\工作\bf752c89b3da5535\CompanyTools\bin\Debug\CompanyTools.dll -dDeviceType1.Configuration=Debug -d"DeviceType1.FullConfiguration=调试|AnyCPU" -dDeviceType1.Platform=AnyCPU -dDeviceType1.ProjectDir=C:\BuildAgent\work\bf752c89b3da5535\DeviceType1\ -dDeviceType1.ProjectExt=.csproj -dDeviceType1.ProjectFileName=DeviceType1.csproj -dDeviceType1.ProjectName= DeviceType1 -dDeviceType1.ProjectPath=C:\BuildAgent\work\bf752c89b3da5535\DeviceType1\DeviceType1.csproj -dDeviceType1.TargetDir=C:\BuildAgent\work\bf752c89b3da5535\DeviceType1\bin\Debug\ -dDeviceType1.TargetExt=.dll -dDeviceType1。 TargetFileName=ASCOM.Product.DeviceType.dll -dDeviceType1.TargetName=ASCOM.Product.DeviceType -dDeviceType1.TargetPath=C:\BuildAgent\work\bf752c89b3da5535\DeviceType1\bin\Debug\ASCOM.Product.DeviceType.dll -dWix.RegisterAscomDeviceProfiles .Configuration=调试-d“Wix.RegisterAscomDeviceProfiles.FullConfiguration=调试|AnyCPU”-dWix。RegisterAscomDeviceProfiles.Platform=AnyCPU -dWix.RegisterAscomDeviceProfiles.ProjectDir=C:\BuildAgent\work\bf752c89b3da5535\Wix.RegisterAscomDeviceProfiles\ -dWix.RegisterAscomDeviceProfiles.ProjectExt=.csproj -dWix.RegisterAscomDeviceProfiles.ProjectFileName=Wix.RegisterAsix.WixDeviceProfiles.csproj -dWix.RegisterAscomDeviceProfiles.ProjectExt=.csproj .ProjectName=Wix.RegisterAscomDeviceProfiles -dWix.RegisterAscomDeviceProfiles.ProjectPath=C:\BuildAgent\work\bf752c89b3da5535\Wix.RegisterAscomDeviceProfiles\Wix.RegisterAscomDeviceProfiles.csproj -dWix.RegisterAscomDeviceProfiles.TargetDir=C:\BuildAgent\work\bf752c89AscomdaDeviceProfile5 \bin\Debug\ -dWix.RegisterAscomDeviceProfiles.TargetExt=.dll -dWix.RegisterAscomDeviceProfiles.TargetFileName=Wix.RegisterAscomDeviceProfiles.dll -dWix.RegisterAscomDeviceProfiles.TargetName=Wix。RegisterAscomDeviceProfiles -dWix.RegisterAscomDeviceProfiles.TargetPath=C:\BuildAgent\work\bf752c89b3da5535\Wix.RegisterAscomDeviceProfiles\bin\Debug\Wix.RegisterAscomDeviceProfiles.dll -out obj\Debug\ -arch x86 -ext ..\Lib\Wix\WixNetFxExtension。 dll -ext ..\Lib\Wix\WixUIExtension.dll AscomDeviceProfileData.wxs CommanderApp.wxs DeviceTypeDriver.wxs LocalServer.wxs Product.wxs DeviceTypeDriver.wxs
806 [01:21:24]:[蜡烛] Windows Installer Xml 编译器版本 3.7.1224.0

现在这一切都出了问题。自定义操作项目继续尝试重建并执行 CoreClean 操作:

827 [01:21:32]:[MSBuild] Wix.RegisterAscomDeviceProfiles\Wix.RegisterAscomDeviceProfiles.csproj:构建目标:重建
828 [01:21:32]:[Wix.RegisterAscomDeviceProfiles\Wix.RegisterAscomDeviceProfiles.csproj] CleanCustomAction
829 [01:21:32]:[CleanCustomAction] 删除
830 [01:21:32]:[删除] 删除文件“obj\Debug\Wix.RegisterAscomDeviceProfiles.CA.dll”。
831 [01:21:32]:[Wix.RegisterAscomDeviceProfiles\Wix.RegisterAscomDeviceProfiles.csproj] CoreClean
832 [01:21:32]:[CoreClean] 删除

然后不久之后,MSpec 单元测试项目尝试构建,但找不到自定义操作项目的输出。

907 [01:21:33]:[Wix.RegisterAscomDeviceProfiles.Specifications\Wix.RegisterAscomDeviceProfiles.Specifications.csproj] ResolveAssemblyReferences 908 [01:21:33]:[ResolveAssemblyReferences] 解决AssemblyReference 909 [01:21:33]:[ResolveAssemblyReference] 主要参考“Wix.RegisterAscomDeviceProfiles”。 910 [01:21:33]:[ResolveAssemblyReference] 找不到相关文件。预期的文件“C:\BuildAgent\work\bf752c89b3da5535\Wix.RegisterAscomDeviceProfiles\bin\Debug\Wix.RegisterAscomDeviceProfiles.dll”不存在。 911 [01:21:33]:[ResolveAssemblyReference] 找不到相关文件。预期的文件“C:\BuildAgent\work\bf752c89b3da5535\Wix.RegisterAscomDeviceProfiles\bin\Debug\Wix.RegisterAscomDeviceProfiles.dll”不存在。 912 [01:21:33]:[ResolveAssemblyReference] 解析的文件路径是“C:\BuildAgent\work\bf752c89b3da5535\Wix.RegisterAscomDeviceProfiles\bin\Debug\Wix.RegisterAscomDeviceProfiles.dll”。 913 [01:21:33]:[ResolveAssemblyReference] 在搜索路径位置“”找到参考。 914 [01:21:33]:[ResolveAssemblyReference] 此参考的 ImageRuntimeVersion 是“”。 915 [01:21:33]:[Wix.RegisterAscomDeviceProfiles.Specifications\Wix.RegisterAscomDeviceProfiles.Specifications.csproj]CoreCompile 916 [01:21:33]:[核心编译] Csc 917 [01:21:33]: [Csc] C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define :DEBUG;TRACE /highentropyva- /reference:C:\BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0.2.1\lib\net35\ASCOM.Astrometry.dll /reference:C:\BuildAgent\work\bf752c89b3da5535\ packages\ASCOM.Platform.6.0.2.1\lib\net35\ASCOM.Attributes.dll /reference:C:\BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0.2.1\lib\net35\ASCOM.Controls.dll /reference:C:\BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0.2.1\lib\net35\ASCOM.DeviceInterfaces.dll /reference:C:\BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0 .2.1\lib\net35\ASCOM.DriverAccess.dll /reference:C:\BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0.2。1\lib\net35\ASCOM.Exceptions.dll /reference:C:\BuildAgent\work\bf752c89b3da5535\packages\ASCOM.Platform.6.0.2.1\lib\net35\ASCOM.SettingsProvider.dll /reference:C:\BuildAgent\ work\bf752c89b3da5535\packages\ASCOM.Platform.6.0.2.1\lib\net35\ASCOM.Utilities.dll /reference:C:\BuildAgent\work\bf752c89b3da5535\packages\FakeItEasy.1.13.1\lib\net35\FakeItEasy.dll /reference:C:\BuildAgent\work\bf752c89b3da5535\packages\Machine.Specifications.0.5.14\lib\net20\Machine.Specifications.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib .dll /reference:C:\BuildAgent\work\bf752c89b3da5535\CompanyTools\bin\Debug\CompanyTools.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Core .dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Data。DataSetExtensions.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /reference :C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq .dll" /reference:C:\BuildAgent\work\bf752c89b3da5535\Wix.RegisterAscomDeviceProfiles\bin\Debug\Wix.RegisterAscomDeviceProfiles.dll /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\Wix。 RegisterAscomDeviceProfiles.Specifications.dll /target:library /utf8output Properties\AssemblyInfo.cs RegisterAscomDeviceProfilesSpecs.cs\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /reference:C:\BuildAgent\work\bf752c89b3da5535\Wix.RegisterAscomDeviceProfiles\bin\Debug\Wix.RegisterAscomDeviceProfiles.dll /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\Wix.RegisterAscomDeviceProfiles.Specifications .dll /target:library /utf8output Properties\AssemblyInfo.cs RegisterAscomDeviceProfilesSpecs.cs\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /reference:C:\BuildAgent\work\bf752c89b3da5535\Wix.RegisterAscomDeviceProfiles\bin\Debug\Wix.RegisterAscomDeviceProfiles.dll /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\Wix.RegisterAscomDeviceProfiles.Specifications .dll /target:library /utf8output Properties\AssemblyInfo.cs RegisterAscomDeviceProfilesSpecs.csRegisterAscomDeviceProfiles.Specifications.dll /target:library /utf8output Properties\AssemblyInfo.cs RegisterAscomDeviceProfilesSpecs.csRegisterAscomDeviceProfiles.Specifications.dll /target:library /utf8output Properties\AssemblyInfo.cs RegisterAscomDeviceProfilesSpecs.cs 918 [01:21:33]:[Csc] CSC 错误 CS0006:找不到元数据文件“C:\BuildAgent\work\bf752c89b3da5535\Wix.RegisterAscomDeviceProfiles\bin\Debug\Wix.RegisterAscomDeviceProfiles.dll” 919 [01:21:33]:[Wix.RegisterAscomDeviceProfiles.Specifications\Wix.RegisterAscomDeviceProfiles.Specifications.csproj] 项目 Wix.RegisterAscomDeviceProfiles.Specifications\Wix.RegisterAscomDeviceProfiles.Specifications.csproj 失败。

我无法弄清楚为什么构建服务器上的事情似乎都乱七八糟地发生了。这一切都在我工作站上的 Visual Studio 中愉快地构建。有什么想法吗?

4

1 回答 1

0

将 teamcity.msbuild.generateWrappingScript 设置为 false

可以在这里找到:MSBuild - 实施说明

实施说明

MSBuild 运行器生成一个包含用户脚本的 MSBuild 脚本。此脚本用于添加 TeamCity 提供的 msbuild 任务。您的 MSBuild 脚本将包含在 <Import> 任务中。如果您指定了 Visual Studio 解决方案文件,它将从 <MSBuild> 任务中调用。要禁用它,请将 teamcity.msbuild.generateWrappingScript 设置为 false。

于 2016-01-11T14:53:08.103 回答