This Question is Answered

2 "helpful" answers available (2 pts)
3 Replies Last post: Feb 10, 2010 5:31 PM by Andrew Arnott  
Andrew Arnott Newbie 24 posts since
Apr 6, 2009
Currently Being Moderated

Feb 10, 2010 11:54 AM

Problem with NUnit runner when using MSBuild 4.0

NUnit fails to launch when using MSBuild 4.0 in the build configuration.  Note that this is not a .NET 4.0 targeting assembly.  This is merely a build of a .NET 3.5 assembly that uses MSBuild 4.0 to build.  So it is not necessary to have NUnit running under CLR 4.
[00:46:38]: [Project "DotNetOpenAuth.sln.teamcity.patch.tcprojx" (Build_TeamCity_generated_0d5dab5f106c4d55afd3b1b6143a2bff;NUnit_TeamCity_generated_0d5dab5f106c4d55afd3b1b6143a2bff target(s)):] c:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe "@@" C:\TeamCity\buildAgent\temp\buildTmp\tmp5C0A.tmp
[00:46:38]: [Project "DotNetOpenAuth.sln.teamcity.patch.tcprojx" (Build_TeamCity_generated_0d5dab5f106c4d55afd3b1b6143a2bff;NUnit_TeamCity_generated_0d5dab5f106c4d55afd3b1b6143a2bff target(s)):] C:\TeamCity\buildAgent\work\c5fdf57062f802c0\src\DotNetOpenAuth.sln.teamcity.patch.tcprojx(10, 5): c:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe "@@" C:\TeamCity\buildAgent\temp\buildTmp\tmp5C0A.tmp exited with code -2146232576.
This is blocking a project upgrade.  Any help getting NUnit to run would be greatly appreciated.

Eugene Petrenko JetBrains 2,209 posts since
Oct 4, 2004
Currently Being Moderated
Feb 10, 2010 2:12 PM in response to: Andrew Arnott
Re: Problem with NUnit runner when using MSBuild 4.0

Current NUnit runner supports only .NET 4.0 beta 1. you will have to update assembly .config file in the build agent:

 

Copy <server>/update/plugins/dotNetPlugin.zip to some temp folder.

update all config files matching the wildcard JetBrains.TeamCity.PlatformProcessRunner.v4.0*.exe.config:

please set the following startup configuration:

    <startup>

        <supportedRuntime version="v4.0.20506"/>

        <supportedRuntime version="v4.0.21006"/>

        <supportedRuntime version="v4.0.30128"/>

    </startup>

pack patched plugin and replace the original .zip file on the server.

Wait while build agent(s) autoupgrade.

Try running the build again.

More Like This

  • Retrieving data ...