Hey, I use the CSharpCodeProvider class to compile c# code into a dll.
That works fine, but only with sourcecode. I would compile into my dll Resources.
I have found the class
CodeCompileUnit codeCompileUnit =
StronglyTypedResourceBuilder.Create(
dicResources, "Resources",
"Customer.Premium.XmlAppResources.Properties", cSharpCodeProvider,
true, out errors
);
this class creates my a perfect c# class that i can compile and i get a wonderfull dll =) BUT :P ...
if i use this dll and i work with the CultureInfo.CurrentCulture i get an error like this :
For the specified culture or the neutral culture resources could not be found. Make sure that Customer.Premium.XmlAppResources.Properties.Resources.resources embedded at compile correctly in the assembly Customer.Premium.XmlAppResources was, or that the required satellite assemblies can be loaded and completely unsigned.
I have no Customer.Premium.XmlAppResources.Properties.Resources.resources in my dll.. and i have no idee where i get this from ...