Avatar of chuang4630
chuang4630 asked on

How to build WPF solution into single exe for specific language

I have to build the WPF solution into single EXE. Not only that, it should be language specific. For example,

MyApp.exe for English (or neutual)
MyApp.exe for Japanese
MyApp.exe for German

I have created three resources file: under MyProject\MyResourcesFolder:

MyProject\MyResourcesFolder\MyResource.resx
MyProject\MyResourcesFolder\MyResource.ja-JP.resx
MyProject\MyResourcesFolder\MyResource.de-DE.resx

Anyone knows how to do it?

BTW, I use VS2012. The solution is on .NET 4.5.

Thanks.
.NET ProgrammingC++

Avatar of undefined
Last Comment
chuang4630

8/22/2022 - Mon
sarabande

you may create 3 configurations of your project. the configuration only would differ by the resource file. i would do it in the sources rather than by exchanging the resx object file. for example each configuration may use a different rc file.

Sara
ASKER
chuang4630

How do I do this?
ASKER CERTIFIED SOLUTION
sarabande

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
chuang4630

Thank you.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes