Perhaps you also can solve my problem ...
Our application contains error messages that have to be translated
into several human languages. To support the retrieval of the error
messages in the correct human language we want to use resources and
satellite assemblies.
So, in our batch build environment (using Nant) all is well. The
programmers write the error messages in a *.txt file, containing lines
looking like
token = message
Then resgen.exe is invoked to transform this *.txt file into the
corresponding *.resources file, which is included into the final
result by the compile step.
My problem is to get this to work in VS.Net, which actually seems to
be two problems:
1. How do I get VS.Net to transform the *.txt file into a *.resources
file?
2. How do I get VS.Net to include this *.resources file into the
assembly?
Note that I want the contents the *.txt file to end up as Embedded
Resources; I DO NOT want to have it as 'manual' resources for which
GetManifestResourceStream() has to be used, because then in my
application I also would have to parse the stream representing the
*.txt file, instead of simply using
ResourceManager.GetString("token").
Also, if you can, please indicate if the answers are different for the
2002 version and the 2003 version of the DotNet world ...
Regards,
Jeroen.