Copying and Compilation Errors during Solution Builds

Saturday, December 20, 2003 7:50:18 PM (Central Standard Time, UTC-06:00)
The IDE can be irritating at times.  Do you ever get this compilation error…

Compiler Error Message: CS0006: Metadata file 'c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\xxxx\934254a0\5606a5c7\assembly\dl2\56405119\009facbd_39b0c301\xxxx.dll' could not be found

To fix this restart IIS.
 
If you get…
 
"Could Not Copy Temporary Files to the Output Directory" which seems to be a pretty popular message when working with multiple projects check out this KB article:
 
 
What has worked for me is to close the solution and compile the solution file with out opening the the VS.NET IDE…  Here is the contents of the .reg file that I use to compile using the context menu in Explorer (notice the framework paths are hard coded, you may need to modify).
 
[HKEY_CLASSES_ROOT\VisualStudio.Solution.7.1\Shell\Build Solution Debug]
 
[HKEY_CLASSES_ROOT\VisualStudio.Solution.7.1\Shell\Build Solution Debug\Command]

@="C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Common7\\IDE\\devenv /rebuild debug \"%1\" /out .\build.txt"


 Note that it will create a build.txt file in the same directory to allow you to view compilation errors, which of course, I am sure there will not be any :-\.
Comments are closed.