DCSIMG
Embedded Resources,C# - David Birin's blog

Browse by Tags

Embedded resources in XSL files
If you ever worked with embedded resources you probably know the required steps for embedding resources: Setting the build action to “Embedded Resource” in the file properties. Adding a web resource attribute with the file (best practice is to add this line in the AssemblyInfo.cs file) the first parameter is the default project namespace + the filename and the second parameter is the mime-type: [assembly: WebResource( "Namespace.Filename.gif" , "image/gif" )] The WebResource attribute...