In ASP.NET Core 6 when publishing as a self contained win-x86 website a bunch of language folders are created in the publish folder.
These folders contain a single dll which is System.Private.ServiceModel.resources.dll
. These folders where not present with Asp.NET 5 as best I can tell and they add clutter/noise to the deployment that I'd prefer not to have.
Can you explain why all these localized versions of the System.Private.ServiceModel.resources.dll
are needed for such a deployment? Also since my website is only in English, can I safely delete all the language folders (ie. cs, de, es, fr, it, ja, ko, pl, pt-BR, ru, tr, zh-Hans, zh-Hant)?
Lastly, is there a better way to make these go away? Some configuration someplace for example?
CodePudding user response:
You can add SatelliteResourceLanguages
to limit the folders.
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
</PropertyGroup>