Thanks Buddy, but it doesn't really works.
Per resgen.exe I get several .resources-files which I compile in a DLL with
the /embed:-option
parameters are %2 - applicationName (Test), %3 - culture (en, en-US ...)
@echo /t:lib > embed.txt
@for %%f in (*.resources) do @echo /embed:%%f,%2.%% f >> embed.txt
@echo /culture:%3 >> embed.txt
@echo /out:%2.resource s.dll >> embed.txt
Ther content of the file embed.txt semms like this:
/t:lib
/embed:AboutForm .en.resources,T est.AboutForm.e n.resources
/embed:Administr ationForm.en.re sources,Test.Ad ministrationFor m.en.resources
/embed:DiagramOv erviewForm.en.r esources,Test.D iagramOverviewF orm.en.resource
s
/embed:FOUpdateF orm.en.resource s,Test.FOUpdate Form.en.resourc es
/culture:en
/out:Test.resour ces.dll
al @embed.txt
The result: In each culture-directory I got a file Test.resources. dll
After this I compile the sources with csc /resource:Test.r esources.dll the
neutral culture in the winexe Text.exe. The culture-dlls I copied in the
applicationfold er as the follow structure.
applicationfold er\en\Test.reso urces.dll
applicationfold er\en-US\Test.resourc es.dll
Is there a mistake so far ?
thanks jesse
"Buddy" <bu***@onlineho me.com> schrieb im Newsbeitrag
news:#v******** ******@TK2MSFTN GP09.phx.gbl...
You probably are loading the resource filename incorrectly. For example
your resource file might be called Test.MyResource .File.resources and you
probably are not passing in the correct resource name
'Test.MyResourc e.File'.
Hope this helps,
"Jesse" <je****@hotmail .com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. Hi together,
I've a problem with compiling an application with a build-Script and run
it after.
Several resource-files I compile with resgen.exe and put the files into
a folders of the language. (en\*.resources , en-US\*.resources ...)
With al.exe I generating several dlls with the format
applicationname .resource.dll (in every language-folders one dll)
I compile the C#-sources with csc and several options and include with
/resource:-Option the dll of the neutral language. There is no error
while compiling.
When I start the application.exe , the Exception above will be shown.
A not handled exception of type
'System.Resourc es.MissingManif estResourceExce ption' has occured in
mscorlib.dll.
For this culture (or the neutrale culture) in this assembly no resources
has been found. Make sure that 'SplashForm.res ources' will be embedded
accurate in the assembly 'applicationnam e'.
What's wrong on building the application, do you have an idea ?
jesse