Changing the case of linked embedded resources

by timvasil 11/2/2007 1:40:00 PM

If you embed a resource in Visual Studio by linking to a file and then want to adjust the case of that link, you have to do it in two places:

Open up the project file and find the link:

<EmbeddedResource Include="..\..\..\..\Yui.zip">
   <
Link>Yui.zip</Link>
</
EmbeddedResource>

Ensure that both instances of the name (in this case "Yui.zip") have the same case.  The text you specify in the "Include" attribute is what shows up in Visual Studio, however the text you specify in the <Link> element becomes the actual name of the embedded resource.  If these two aren't consistent, it'll definitely lead to confusion. Assembly.GetManifestResourceStream is case-sensitive and won't return what you expect unless you get the case right!

Tags:

.NET Framework | Visual Studio

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading


Search

Calendar

«  May 2012  »
SuMoTuWeThFrSa
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

View posts in large calendar

Recent comments

Archive