I'm trying to convert an old-style Visual Studio 2015 .net framework 4.8 project to an sdk-style project in VS 2019. Works quite well so far, but I'm struggling with the following requirements:
- We have localized text resources in restext format, like
- \Resources\Strings\strings.en_US.restext
- \Resources\Strings\strings.de_DE.restext
- \Resources\Strings\strings.es_ES.restext
- ...
- We'd like to convert those restext files into
- embedded resources
- and corresponding strongly typed resources (aka .Designer.cs files)
- We'd like those localized string resources to end up in the final .exe so that they are accessible at runtime
- We'd like this to work both in VS and -- perhaps even more importantly -- when building with dotnet.exe on the command line
Althoug there seems to exist some support for resource handling and l10n with dotnet.exe (like the GenerateResource task, which, however, seems to have no support for the .restext format), I just can't figure out a way to accomplish this. (To me, the documentation available on this topic appears rather sparse and vague...)
Anyone any ideas how to set up a build satisfying the requirements described above?