Msbuild works fine on my computer, but when I try to build a project using bamboo / msbuild, it refers to .net 4.0 for some reason.
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]
I need to use MSBuild 4.0 because I use the new compiler features (default options, etc.). For some reason, System.Core 4.0 even refers to the fact that it targets 3.5.
source share