← Back to team overview

nunit-core team mailing list archive

[Bug 570162] Re: FileNotFoundException when loading .nunit file

 

Thanks for the help. Consider joining http://launchpad.net/~nunit-dev if
you have not already.

** Changed in: nunitv2
       Status: New => Triaged

** Changed in: nunitv2
   Importance: Undecided => Medium

** Changed in: nunitv2
     Assignee: (unassigned) => Neredera (neredera)

-- 
FileNotFoundException when loading .nunit file
https://bugs.launchpad.net/bugs/570162
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.

Status in NUnit V2 Test Framework: Triaged

Bug description:
When loading our .nunit file with NUnit 2.5.5.10112 an exception occurs.
This worked with NUnit 2.5.4.10098 and older versions.

The problem is the following change:

http://bazaar.launchpad.net/~nunit-core/nunitv2/2.5.3/revision/3130/src/ClientUtilities/util/Services/DomainManager.cs

We have a '..' inside our basePath. Because of the Path.GetFullPath PathUtils.RelativePath no longer recognizes the realtive directory correctly.

The following would work:

string dir = PathUtils.RelativePath( Path.GetFullPath(basePath), Path.GetDirectoryName( Path.GetFullPath(assembly) ) );





References