Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When compiling WPF application language folders are copied to build folder

How can I cancel this option (I need only English). Is it some installation that should be removed? configuration?

folders created are: de, en, es, fr, it, ja, ko, zh-Hans zh-Hant

Working with Visual Studio 2015

references:

  • System.Windows.Interactivity
  • Microsoft.Expression.Interactions
like image 962
Keren Avatar asked Nov 08 '15 16:11

Keren


People also ask

For which platforms can WPF applications be compiled?

WPF runtime libraries are included with all versions of Microsoft Windows since Windows Vista and Windows Server 2008.

Where does the execution start in a WPF application?

For a WPF standalone application that is generated in Visual Studio using the New Project wizard, the entry point for the application is the Main function, defined in App. g. cs (generated code). In the default project, this is the public static void App.


3 Answers

I added this in my "post build event command line" which is a bit shorter than the example by Dr. C. Hilarius.

rd /s /q "de" "en" "es" "fr" "hu" "it" "ja" "ko" "pr-br" "ro" "pt-br" "ru" "sv" "zh-hans" "zh-hant"
like image 186
Rahbek Avatar answered Oct 11 '22 18:10

Rahbek


None of the suggestions worked for me.

Instead, I added post build events to remove the offending directories:

RMDIR "$(TargetDir)de/" /S /Q
RMDIR "$(TargetDir)es/" /S /Q 
RMDIR "$(TargetDir)fr/" /S /Q
RMDIR "$(TargetDir)it/" /S /Q
RMDIR "$(TargetDir)ja/" /S /Q
RMDIR "$(TargetDir)ko/" /S /Q
RMDIR "$(TargetDir)ru/" /S /Q
RMDIR "$(TargetDir)zh-Hans/" /S /Q
RMDIR "$(TargetDir)zh-Hant/" /S /Q
like image 8
Dr. Hilarius Avatar answered Oct 11 '22 17:10

Dr. Hilarius


Turning my comment as an answer:

The issue may come from C:\Program Files (x86)\Microsoft SDKs\Expression\Blend\.NETFramework\v4.0\Libraries which contains localizable objects for build. If you delete it (keep a backup to be sure) it should solve your issue.

like image 7
Thomas Ayoub Avatar answered Oct 11 '22 17:10

Thomas Ayoub