I am using TeamCity 5 EAP and am having difficulty running my NUnit tests. I consistently get the following error:
NUnit Error: Could not load file or assembly 'MySolution, Version=184.108.40.206, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
My configuration is as follows:
- Build Runner: MSBuild
- MSBuild version: Microsoft .NET Framework 4.0
My MSBuild is pretty simple which is:
<?xml version="1.0" encoding="utf-8" ?>
<UsingTask TaskName="NUnit" AssemblyFile="$(teamcity_dotnet_nunitlauncher_msbuild_task)"/>
<MSBuild Projects="$(teamcity_build_checkoutDir)\MySolution.sln" Properties="Configuration=Release" />
<Target Name="UnitTests" DependsOnTargets="Build">
<NUnit Assemblies="$(teamcity_build_checkoutDir)\MySolution\bin\Release\MySolution.dll" />
Any help would be appreciated.