I have a TeamCity server configured to create multiple solutions, and then run unit tests on them using the NUnit Test Runner.
This works fine for several months; however, with our last build, I ran into the following error:
Failed to execute SetUp method. SetUp: System.IO.FileLoadException: Could not load file or assembly 'log4net, Version = 1.2.13.0, Culture = neutral, PublicKeyToken = 669e0ddf0bb1aa2a' or one of its dependencies. The installed assembly manifest definition does not match the Help assembly. (Exception from HRESULT: 0x80131040)
This only happens for one TestFixture, which contains 9 out of hundreds of tests throughout the system. All tests pass at startup using ReSharper or the NUnit GUI.
The Nuget package correctly references both the test project and the test project itself. There is no need to redirect the assembly because only one version of Log4Net has been installed.
Has anyone else had a similar problem that they solved or any ideas as to what could be the problem? Why it will work locally and not on the server, especially taking into account the same tests that were passed earlier.
The versions of NUnit on my local machine and on my TeamCity server are the same.
source share