MSBuild 4.0 and TeamCity

When will 4.0 become an option, for the MSBuild Runner configuration?

The reason I ask, is because I want to be able to create an inline task.

11 comments
Comment actions Permalink

Please try TeamCity 5.0.

0
Comment actions Permalink

That's what I am using.  I have the latest 5.0 build.

0
Comment actions Permalink

What values to you have in the 'MSBuild version:' chooser of MSBuild build runner configuration settings? Do you mean sln* build runner?
Please attach screenshot

0
Comment actions Permalink

Here is a screenshot.  It is the MSBuild build runner, .Net 3.5 / MSBuild Tools versions are either None or 3.5.



Attachment(s):
buildtools.jpg
0
Comment actions Permalink

I've fixed the issue in both 5.0.x and trunk.

To apply the fix, please update  msBuildRunParams.jsp at <server>/webapps/ROOT/plugins/msbuild folder with the contents of attached file.
Note, this patch will be reverted on server restart.

To make a persistent patch, please update this file inside .jar. You will need to stop TeamCity before.
Replace contents of the attached file and the same file <server>\webapps\ROOT\WEB-INF\lib\msbuild-runner-server.jar!/buildServerResources/

Don't forger to backup files before patching!

Thanks!



Attachment(s):
msBuildRunParams.jsp.zip
0
Comment actions Permalink

Strange, I cannot find MSBuild ToolsVersion field in TeamCity 5.0 (build 10669). See the screen shot.



Attachment(s):
msbuild4.png
0
Comment actions Permalink

Please set .NET 3.5 or .NET 4.0

0
Comment actions Permalink

I have applied to patch and I now see the 4.0 tool version in my build runner configuration.

When I run my build I get the following error:

error MSB5014: File format version is not recognized. MSBuild can only read solution files between versions 7.0 and 9.0, inclusive.

I have also added C:\WINDOWS\Microsoft.NET\Framework\v4.0.21006 to the path on the teamCity box, but this didnt help either. Any ideas? - it seems to not be running msbuild 4.0 despite my configuration.



Attachment(s):
TC_msbuild4.JPG
0
Comment actions Permalink

UI now is correct.

It turns out that both the one under webapps\ROOT\plugins and the one inside webapps\ROOT\WEB-INF\lib\msbuild-runner-server.jar need to be replaced.

But, here comes another problem.

Although I set both .net Framework and ToolsVersion as 4.0, TeamCity still uses 2.0 .

0
Comment actions Permalink

MSBuild and .NET 4.0 is not fully supported in TeamCity 5.0.
Please have a look at the following issues
http://youtrack.jetbrains.net/issue/TW-8601
http://youtrack.jetbrains.net/issue/TW-9940


Please check you have selected right version of .NET Framework. Please check system.dotNetFramework4.0_Path points to .NET 4 installation directory.

0
Comment actions Permalink

MSBuild and .NET 4.0 is not fully supported in TeamCity 5.0.
Please have a look at the following issues
http://youtrack.jetbrains.net/issue/TW-8601
http://youtrack.jetbrains.net/issue/TW-9940

Current version of TeamCity does not able to set 4.0 to ToolsVersion attribute.

0

Please sign in to leave a comment.