Rob Kraft's Software Development Blog

Software Development Insights

How to prevent foreign language subfolders in Silverlight 5.0 projects

Posted by robkraft on April 17, 2016

This is an update to a blog post I first made in 2011:

We are still supporting Silverlight applications, though we should have them rewritten in HTML within a year.  Until then, we can put the commands below into a batch file and run it as Admin on developer PCs to stop the creation of all the foreign language versions of the DLLs of our projects.  This speeds up the build time a little bit, and keeps us from distributing, analyzing, virus-checking, and etc. on those DLLS.

cd \Program Files (x86)\Microsoft SDKs\Silverlight\v5.0\Libraries\Client
rd ar /S /Q
rd bg /S /Q
rd ca /S /Q
rd cs /S /Q
rd da /S /Q
rd de /S /Q
rd el /S /Q
rd es /S /Q
rd et /S /Q
rd eu /S /Q
rd fi /S /Q
rd fr /S /Q
rd he /S /Q
rd hr /S /Q
rd hu /S /Q
rd id /S /Q
rd it /S /Q
rd ja /S /Q
rd ko /S /Q
rd lt /S /Q
rd lv /S /Q
rd ms /S /Q
rd nl /S /Q
rd no /S /Q
rd pl /S /Q
rd pt /S /Q
rd pt-BR /S /Q
rd ro /S /Q
rd ru /S /Q
rd sk /S /Q
rd sl /S /Q
rd sr-Cyrl-CS /S /Q
rd sr-Latn-CS /S /Q
rd sv /S /Q
rd th /S /Q
rd tr /S /Q
rd uk /S /Q
rd vi /S /Q
rd zh-Hans /S /Q
rd zh-Hant /S /Q

cd \Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v5.0
rd de /S /Q
rd es /S /Q
rd fr /S /Q
rd it /S /Q
rd ja /S /Q
rd ko /S /Q
rd ru /S /Q
rd zh-Hans /S /Q
rd zh-Hant /S /Q





Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: