Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Dll Culture Folders on Compile

Tags:

c#

.net

wpf

culture

I'm using 2 dlls (Microsoft.Expression.Interactions.dll and System.Windows.Interactivity.dll) that, when the parent application is compiled, create loads of culture folders:

And inside each are 2 dlls (Microsoft.Expression.Interactions.resources.dll and System.Windows.Interactivity.resources.dll). I've googled around and I just can't find anything related to how to stop this annoying auto-generated content.

like image 220
Alexander Forbes-Reed Avatar asked Dec 03 '13 03:12

Alexander Forbes-Reed


3 Answers

Faced the same problem. My project uses ASP.NET Core 3.1

Add this line to your *.csproj

<PropertyGroup>
   <SatelliteResourceLanguages>en</SatelliteResourceLanguages>
</PropertyGroup>
like image 174
al.koval Avatar answered Oct 19 '22 17:10

al.koval


There are two workarounds for this issue:

  • copy System.Windows.Interactivity.dll and add a reference directly to this file
  • remove those folders from:
    \Program Files (x86)\Microsoft SDKs\Expression\Blend\.NETFramework\v4.5\Libraries

Related links:
Original solution
Generated files by caliburn.micro in Release directory

like image 22
Wojciech Kulik Avatar answered Oct 19 '22 18:10

Wojciech Kulik


I use other solution. You can configure Post-build event for your project in Visual Studio, wich will remove redundant folders:

rd /s /q "de", "en", "es", "fr", "it", "ja", "ko", "ru", "zh-Hans", "zh-Hant"

This solution is less invasive than removes folders from sdk folder.

like image 20
Digger Avatar answered Oct 19 '22 17:10

Digger