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.
LVL 1
chuang4630Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sarabandeCommented:
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
0
chuang4630Author Commented:
How do I do this?
0
sarabandeCommented:
- add all 3 resource files to the project.
- in the properties view of your solution, choose configuration manager.
- in the drop-down of the 'active solution configuration' you may create <new> configuration
- do that for each language you want to support.
- in each configuration two of the three resource files will be excluded from build.

if doing so you can build a new executable which exactly use the language-specific resource file. if necessary you may do that both for debug and release but probably doing it for release should be sufficient. for each configuration you may use a different build folder and/or name of the executable.

Sara
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chuang4630Author Commented:
Thank you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.