Oct 11 2005

Publishing embedded resources in ASP.Net 2.0

Category: .NetRory Primrose @ 06:47

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:

  1. The resource must be marked as Build Action = Embedded Resource
  2. 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
  3. 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

Tags:

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading