I created a .NET 6.0 project. By default, it addded lots of globalization folders for other languages. In my case, I knew the target audience only needs English. In order to trim the size of the installer, I added a single line to my .csproj
to enable only US English.
<PropertyGroup> <TargetFramework>net6.0-windows</TargetFramework> <SatelliteResourceLanguages>en-US</SatelliteResourceLanguages> <Nullable>enable</Nullable> <ImplicitUsings>enable</ImplicitUsings> </PropertyGroup>
Microsoft provides additional information here.