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!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

.NET Framework | Visual Studio

Related posts

Comments are closed

 

About the author

Tim Vasil Tim Vasil
I'm a software engineer living in Cambridge, MA.

E-mail me Send mail

Search

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

Recent comments