← Back to team overview

nunit-core team mailing list archive

[Bug 837634] Re: error CS0006: Metadata file 'nunit.framework.dll' could not be found

 

The nunit.framework assembly is not intended to be installed in the GAC.
Each test that references a particular version of nunit.framework must
have it available (1) at compile time and (2) at execution time.

When working with Visual Studio, the nunit.framework assembly will
appear in the add reference dialog provided you installed NUnit using
the .msi file. If instead you installed by copying the assemblies, you
will have to navigate to the location to create the reference.

When running under visual studio, the framework assembly is normally
copied so that it can be used at execution time. If it's not copied,
check the properties of the reference. When running outside of visual
studio, you must deploy a copy of the nunit.framework assembly with your
tests.

For further discussion about this, please feel free to post questions on
the nunit-discuss list.

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/837634

Title:
  error CS0006: Metadata file 'nunit.framework.dll' could not be found

Status in NUnit V2 Test Framework:
  Invalid

Bug description:
  >csc /reference:nunit.framework.dll /reference:System.dll /target:library 
  /out:bin\Test.dll Test.cs
  Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
  Copyright (C) Microsoft Corporation. All rights reserved.

  error CS0006: Metadata file 'nunit.framework.dll' could not be found

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/837634/+subscriptions


References