Loading DbLinq_StudioExpress.sln in VCSE gives only one warning.

Andrus.

  ----- Original Message ----- 
  From: Jonathan Pryor 
  To: dblinq 
  Sent: Friday, February 27, 2009 7:50 PM
  Subject: NUnit Tests & DbMetal


  Perhaps I'm an idiot.  Perhaps I'm really unlucky.  I'll let fate sort that 
out...

  I'm trying to rework the unit test infrastructure in the tests-without-db 
branch.  Since I only have Visual Studio Express, part of that is getting the 
tests to work on Visual Studio Express (impressive, I know).

  Consequently, I'm not able to run the existing unit tests, as I get a billion 
warnings[0] when loading the normal .sln file within Express.  Thus, I don't 
know what "normal" is. :-(

  What I do know is this: tests/DbLinqTest/DbLinqTest.csproj has a project 
reference to DbMetal, because it tests some DbMetal internals.  Fine.

  My problem is that when I create a NUnit test containing these DbMetal tests, 
most of them fail, because the DbMetal assembly can't be loaded.

  More research reveals the problem [1]: The .NET assembly loader, when used 
within NUnit, doesn't find .exe files, only .dll files.

  Thus, the question: Does the DbLinqTest project actually work and run without 
error?  If so, how does it find the DbMetal.exe reference (i.e. what do I need 
to do to mimic correct behavior)?  (Alternatively, did whoever is running the 
test previously copy DbMetal.exe to DbMetal.dll, which is sufficient to fix 
this error?)

  Inquiring minds want to know. :-)

  - Jon

  [0] uncounted

  [1] Fusion Log from trying to load DbMetal.exe within NUnit: 
LOG: Using application configuration file: 
Z:\Home\Development\mono-HEAD\dblinq2007.tests\build.dbg\DbMetal.exe.config
LOG: Using machine configuration file from 
C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, 
partial, or location-based assembly bind).
LOG: Attempting download of new URL 
file:///Z:/Home/Development/mono-HEAD/dblinq2007.tests/build.dbg/DbMetal.DLL.
LOG: Attempting download of new URL 
file:///Z:/Home/Development/mono-HEAD/dblinq2007.tests/build.dbg/DbMetal/DbMetal.DLL.
ERR: A fatal error occurred when retrieving next codebase for download (hr = 
0x8007007b).


  

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DbLinq" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/dblinq?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to