I've had my share of build problems Visual Studio .NET 1-oh-my-God! as well. My last resort has always been to close Visual Studio and delete the bin and obj directories for all projects. Once this is done, I have been able to build regardless of the previous error (missing reference, locked file, etc.)
Good luck, Seang -----Original Message----- From: James Berry [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 1:15 PM To: [EMAIL PROTECTED] Subject: [DOTNET] NIGHTMARE BUG!! Visual Studio fails to build debug, but release works fine.. I am developing a .net project. The solution has 14 projects, of varying size. The compiled IL is a total of 640k so far. So it's getting big, but you wouldn't expect there to be any problems. Today VS.NET has started refusing to build my project in debug mode. A simple 'using Adastra.CMS.Business' statement gives the standard reference problem message: "Main.cs(8): The type or namespace name 'CMS' does not exist in the class or namespace 'Adastra' (are you missing an assembly reference?)" However, I have got the correct project in my references. Deleting the reference and re-adding it has no effect. Inspecting the compiled dll with ildasm indicates that yes, the namespace is in there. Would you believe building a release mode version works perfectly??? I have tried full rebuilds, partial rebuilds, del *.dll /s, del *.pdb /s and a rebuild. I've tried restarting devenv. I've tried rebooting. I've deleted the solution and recreated it. I've deleted the project that contains the adastra.cms.business namespace. I've done a full repair/reinstall of vs.net; I've copied the project to another machine and tried building it on there (same again). I've tried pulling my hair out. I've tried shouting. But nothing seems to work. I don't understand -- seeing as a release build works fine! This is frustrating as hell. I've been trying to solve this for 7 hours straight now, and you can guess how I feel about visual studio.net right about now. Anyone got any ideas? Please??? ;-) You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.