'How can I reduce the amount of files produced by dotnet publish command line? [closed]
I tried to publish my dotnet app using dotnet publish --output publish --configuration Release
but the result not as expected because the last month I tried to publish with the same command and Its generate less amount of files, I didn't know why ??
- This is the files that was added link
Solution 1:[1]
Add to your main .csproj file:
<PropertyGroup>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
</PropertyGroup>
(or whichever primary language you want to target).
Reference: https://docs.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#satelliteresourcelanguages
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | sellotape |