Publishing embedded resources in ASP.Net 2.0
I put up a post a while back about my issues with publishing embedded resources from an assembly with ASP.Net 2.0. Ramon wanted a sample, so here it is.
There are a couple of things to note about getting this to work:
- The resource must be marked as Build Action = Embedded Resource
- Line 18 in ResTest\ResTestLib\My Project\AssemblyInfo.vb must include the full namespace of the assembly, not just the filename of the embedded resource
- As above, Line 21 in ResTest\ResTestLib\ResTestControl.vb must also include the full namespace of the assemlby, not just the filename of the embedded resource
Written on October 11, 2005