Marko Apfel

C#, Architecture, QA, Coach, GIS, ArcGIS, ArcObjects

  Home  |   Contact  |   Syndication    |   Login
  141 Posts | 2 Stories | 69 Comments | 4 Trackbacks

News



Twitter | LinkedIn | Xing

Twitter












Article Categories

Archives

Post Categories

BizTalk

C#

Enterprise Library

SAP

SQL Server

Technologie

We use a developer tree like
  • src (contains the master-SLN and other code-stuff)
  • build (contains tools to build assemblies, code-doku, ..)
  • bin (central common output-folder for c#-compiler)
Under src normally the <project>.nunit should lay. But this file then references the assembly in a schema like:
<assembly path="..\bin\Debug\EsriDE.PipelineManagement.Core.ClassExtensions.Test.dll" />

This gives an error by running nunit-console.exe:
Could not load file or assembly 'EsriDE.PipelineManagement.Core.ClassExtensions.Test' or one of its dependencies.

The problem is, that nunit only could load assemblies which are located in a folder inside or under the folder which contains the nunit-project file.

I traced this error with fuslogvw and this gives the correct hint:
Not probing location file:///C:/Projekte/PDE-000092/PRJ_SfgPraxair/trunk/bin/Debug/EsriDE.PipelineManagement.Core.ClassExtensions.Test.DLL, because the location falls outside of the appbase.

Putting the nunit-project file directly near the above quoted folders and deleting the "..\" inside the file for the assembly locations corrects the problem and lets run nunit fine.
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
posted on Friday, June 12, 2009 1:35 PM