Problem referencing embedded resource
-
How does one get the assembly's Namespace Name? I embedded some SQL scripts in an assembly. The assembly name is "AAI_TK1", it is in the "ArchiveXpress20" namespace. Dim asm As System.Reflection.[Assembly] = System.Reflection.[Assembly].GetExecutingAssembly() --> this returns "AAI_TK1" ----> asm.GetName().Name However the Resource names are prefixed with the namespace --> "ArchiveXpress20.Script1.SQL" ----> GetManifestResourceNames() I didn't want to hardcode the namespace. How can you get your namespace?
-
How does one get the assembly's Namespace Name? I embedded some SQL scripts in an assembly. The assembly name is "AAI_TK1", it is in the "ArchiveXpress20" namespace. Dim asm As System.Reflection.[Assembly] = System.Reflection.[Assembly].GetExecutingAssembly() --> this returns "AAI_TK1" ----> asm.GetName().Name However the Resource names are prefixed with the namespace --> "ArchiveXpress20.Script1.SQL" ----> GetManifestResourceNames() I didn't want to hardcode the namespace. How can you get your namespace?
Hi, I recently had the same problem. My solution so far is creating an object OBJ of a type defined in the same namespace, and then use OBJ.GetType().NameSpace I too would prefer a simpler solution... :) -- modified at 17:10 Thursday 7th December, 2006
Luc Pattyn