Rob Kraft's Software Development Blog

Software Development Insights

Archive for the ‘Visual Studio 2010’ Category

A way to eliminate the foreign language Dlls in Silverlight

Posted by robkraft on April 27, 2010

If you compile silverlight projects you may notice that you get 8 non-english language versions of your DLL. Although this causes no major harm, I personally prefer not to create them because it takes time, it clutters up the results of my nant build output, and I don’t need them. To eliminate the the eight foreign language DLLs from your build process, go to your silverlight libraries folder which is probably C:\Program Files\Microsoft SDKs\Silverlight\v3.0\Libraries\Client, and delete the eight subfolders (de, es, fr, it, ja, ko, zh-Hans, and zh-Hant). With the Visual Studio 2010 install, it looks like you also need to delete the same subfolders from C:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v3.0.

Posted in Visual Studio 2010 | Tagged: | Leave a Comment »

When CopyLocal=True means CopyLocal=False

Posted by robkraft on February 8, 2010

We have learned that CopyLocal = true is misleading. CopyLocal is set to true by default, but that does not always cause the DLL to get included in the .xap. However, if you change it to false, then back to true, it does get included in the .xap. We have experienced this many times in VS2008 with Silverlight 3.

Also, after you do this, you will notice that it does cause a change in the .csproj file. It sets the Private Tag explicitly to true, rather than relying on the msbuild default value of true.
I hope this post helps others resolve this xap file problem more quickly.

Posted in Visual Studio 2008, Visual Studio 2010 | Tagged: , | Leave a Comment »