Strange VS2005 compile errors: unable to locate resource file (because the compiler keeps deleting i
Posted
by Velika
on Stack Overflow
See other posts from Stack Overflow
or by Velika
Published on 2010-04-07T18:56:41Z
Indexed on
2010/04/08
5:43 UTC
Read the original article
Hit count: 511
I AM GETTING THE FOLLOWING ERROR IN A VERY SIMPLE CLASS LIBRARY:
Error 1 Unable to copy file "obj\Debug\SMIT.SysAdmin.BusinessLayer.Resources.resources" to "obj\Debug\SMIT.SysAdmin.BusinessLayer.SMIT.SysAdmin.BusinessLayer.Resources.resources". Could not find file 'obj\Debug\SMIT.SysAdmin.BusinessLayer.Resources.resources'. SMIT.SysAdmin.BusinessLayer
Going to the Project Properties->Resource tab, I see that I defined do resources. Still, I tried to delete the resource file and recreate by going to the resource tab. When I recompile, I still get the same error.
Why is it even looking for a resource file? I define no resources on teh project properties tab and added no new resource file items.
Any suggestions of things to try?
Update:
I found the missing file in an old backup. I copied it to the location where the compiler expected it, and then successfully recompiled the project that previously had compile time errors. However, when I rebuild the entire solution, it deletes the file that I previously restored and I'm back to where I started.
My solution contains several projects (maybe 10 or so). Could VS 2005 be having a problem determining dependencies and the proper order to compile these projects?
© Stack Overflow or respective owner