Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing files using Build Action: Content

The way I've previously accessed content files is by setting them to "Copy always/if newer", then loading the file directly.

However, browsing the web, it seems there's another way to load it - That it's automatically included in the .exe/.dll. However, I've been unable to find out what the method is, to access said included content.

like image 574
Narf the Mouse Avatar asked Jun 08 '12 13:06

Narf the Mouse


1 Answers

It is Embedded Resource. This will cause it to be streamed into your assembly.

Here is Microsoft's walk thru: http://support.microsoft.com/kb/319292

like image 134
Daniel A. White Avatar answered Sep 24 '22 02:09

Daniel A. White