Problems!! Unit testing with Visual Studio 2008

with this hack i solved some problems
[ClassInitialize] public static void ClassInitialize(TestContext testContext) { AppDomain.CurrentDomain.SetData("APPBASE", Environment.CurrentDirectory); Console.WriteLine("DEBUG: " + AppDomain.CurrentDomain.BaseDirectory); }
BUT with our Base.dll i got an Exception dll not found!

I must copy our Base.dll to c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\

then it works!
not NICE

to find all configured sections, usersettings, agents-dlls i need my app.config resp. my web.config but
the App.config works with VS2008 with VS2005 not.
in VS2005 i must add the VSTestHost.exe.config then it works.

or maybe it works even with App.config


at last i get my solution always checked out when i run my unit test.
the vs2008 does add the vsmdi file as Solution Item.

how can i disable this?

A post that helped at first time.
But Next time it gets checked out.

Latest Posts

Popular Posts