Error message:
System.Runtime.Serialization.SerializationException : Unable to find assembly 'MyCompany.Plates, Version=12.15.0.0, Culture=neutral, PublicKeyToken=0b9f95a95d107d22'. +++++++++++++++++++ STACK TRACE: at System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly()
There are two DLL files:
PlatesTests.dll and MyCompany.Plates.dll
The tests are all in PlatesTests.dll
. The objects being serialized are in MyCompany.Plates.dll
.
When run by passing PlatesTests.dll
to nunit-console.exe
, everything passes.
However, our build system uses a .nunit file as under:
<NUnitProject>
<Settings activeconfig="Default" />
<Config name="Default" binpathtype="Auto">
<assembly path="..\..\Build Products\ReleaseTests\PlatesTests.dll" />
</Config>
</NUnitProject>
And when the nunit-console is run against this .nunit file, it gives the above error.
How can I fix this problem?