Msbuild在我的计算机上工作正常,但是当我尝试使用bamboo/msbuild构建项目时,出于某种原因,它引用了.net 4.0。当项目目标为3.5时,Msbuild 4.0引用System.Core 4.0?
DB\DbExt.cs(95,42): error CS0433: The type 'System.Func<T1,T2,TResult>' exists in both 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll' and 'c:\Windows\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll' [C:\Users\Administrator\bamboo-home\xml-data\build-dir\GITEXP-GITEXPORT-JOB1\NotMissing\NotMissing\NotMissing.csproj]
我需要使用MSBuild 4.0,因为我正在使用新的编译器功能(默认参数等)。由于某些原因System.Core 4.0被引用,即使它的目标是3.5。
它是唯一的项目,并没有引用任何4.0程序集。另外它使用msbuild 4.0在竹子之外建造良好。 – Will 2012-03-15 07:02:21
使用供应商的支持渠道,如https://answers.atlassian.com/ – 2012-03-15 17:07:18