Disable Dll Culture Folders on Compile

I found a good answer for .NET Core 3

Just add ExcludeAssets="All" to the package reference.

<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.0.0" ExcludeAssets="All" />

This is the link for the original post on Microsoft Community: https://forums.asp.net/post/6281458.aspx


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

Add this line to your *.csproj

<PropertyGroup>
   <SatelliteResourceLanguages>en</SatelliteResourceLanguages>
</PropertyGroup>

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


I use other solution. You can configure Post-build event for your project in Vistual 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.

Tags:

C#

.Net

Wpf

Culture