I publish my app with the following command: dotnet publish -c Debug -r linux-arm
. It works fine, however, it generates folders for languages I don't need.
There are these 3 files in each folder: Microsoft.Data.Edm.resources.dll, Microsoft.Data.OData.resources.dll, System.Spatial.resources.dll.
I do not use these DLLs at all.
Furthermore, the language folders are not there if I publish for Windows. Only for Linux-arm.
How do I just limit the publish to English?
Refer MSBuild properties
Add the line <SatelliteResourceLanguages>en-US</SatelliteResourceLanguages>
in to the property group in your project file. For example,
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<SatelliteResourceLanguages>en-US</SatelliteResourceLanguages>
</PropertyGroup>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With