How to build WPF solution into single exe for specific language

Posted on 2013-09-12
Medium Priority
Last Modified: 2013-09-17
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:


Anyone knows how to do it?

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

Question by:chuang4630
  • 2
  • 2
LVL 35

Expert Comment

ID: 39489502
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.


Author Comment

ID: 39490998
How do I do this?
LVL 35

Accepted Solution

sarabande earned 2000 total points
ID: 39495945
- 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.


Author Closing Comment

ID: 39500823
Thank you.

Featured Post

7 new features that'll make your work life better

It’s our mission to create a product that solves the huge challenges you face at work every day. In case you missed it, here are 7 delightful things we've added recently to monday to make it even more awesome.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question