Could not load file or assembly 'nunit.framework, Version=

pie.or.paj's Avatar


09 Feb, 2015 09:02 PM

We have a problem getting our tests to work on AppVeyor.
Locally one can just run nuget restore via Visual Studio and the run the tests but on AppVeyour we get the error Could not load file or assembly 'nunit.framework, Version=
We are using a newer version of nunit.framework ourselves but NSpec is using the
During build it pickup the newer version instead but somehow this doesn't happen when the tests actually run.

Unified primary reference "nunit.framework, Version=, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77".
      Using this version instead of original version "" in "C:\projects\textilgallerian\TextilgallerianKuponger\packages\nspec.0.9.68\lib\NSpec.dll" because AutoUnify is 'true'.

A detailed log of a failing run can be found at

  1. Support Staff 1 Posted by Feodor Fitsner on 09 Feb, 2015 10:32 PM

    Feodor Fitsner's Avatar

    Is it like those nunit tests are being run by vstest.console runner?

    Make sure you have "CopyLocal=true" for all required dependencies.

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:53 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac