Home All Groups Group Topic Archive Search About
Author
21 Feb 2006 4:47 AM
deko
I'm getting a warning on build (VS05):

The file 'Resources\myGif.gif' could not be added to the project.  A file
with the same path already exists in the project.

I've searched the entire project (including the Resources.Designer.cs)
looking for myGif.gif, but can't find it - at least not with a global text
search.

I have a number of images in a "Resources" folder in the Project, and I've
set the Build Action property of the .gif files to Embedded Resource.  This
one is the only one that causes a warning.

How do I remove this "existing" resource so I don't get that warning?

Thanks.

Author
21 Feb 2006 5:39 AM
deko
I found this:

http://support.microsoft.com/default.aspx?scid=kb;en-us;810110

and used this:

Assembly a = Assembly.GetExecutingAssembly();
string[] resourceNames = a.GetManifestResourceNames();
foreach (string str in resourceNames)
{
   Console.WriteLine(str);
}

and eventually fixed it...

AddThis Social Bookmark Button