When debugging a GAC deployed assembly in Microsoft Visual Studio .NET 2005 with TestDriven .NET and NUnit, i get the error:
The following module was built either with optimizations enabled or without debug information: C:\WINDOWS\assembly\GAC_MSIL\…..
To debug this module, change its project build configuration to Debug mode. To suppress this message, disable the "Warn if no user code on launch" debugger option.
This exception is caused by the fact, that the assembly was deployed to the GAC. If you want to debug this assembly. Remove the dll from the GAC (C:\WINDOWS\assembly) directory and make sure the assembly is referenced by the UnitTest project in Microsoft Visual Studio 2005 and Copy local is set to true.
After rebuilding the UnitTest project with debug configuration. The \bin\Debug directory should contain the dll to debug en the *.pdb file of that assembly.
Make sure all project are build with the following properties: