You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're using .net core 3.1 and efcore 3.1, including the efcore .Design package. During publish our output directory included lots of localization files that are unnecessary for us.
After some googling we came across these relevant threads:
The approach that worked for us was adding <SatelliteResourceLanguages>en-US</SatelliteResourceLanguages>.
And for a time all was well, until we changed our publish command to emit to a custom --output location. That change (and only that change) caused the publish output to suddenly contain all those unnecessary localization directories again.
I don't understand why changing the output location would cause the output to differ, but it makes me very nervous. I'd expect identical commands but with a custom output location to produce identical outputs.
The text was updated successfully, but these errors were encountered:
Also having this issue. We're seeing localization data from Microsoft.VisualStudio.TraceDataCollector.resources.dll in localization folders. We're using a custom output directory on solution level and have set the SatelliteResourceLanguages to de, even within the command (within a powershell script):
Hello, I see the same issue with "dotnet publish" for Test Projects. Some online posts suggest adding ExcludeAssets="All" to the "Microsoft.NET.Test.Sdk" ProjectReference. However, doing so also removes files such as "testhost.exe" which prevents me from running Automated Tests.
We're using .net core 3.1 and efcore 3.1, including the efcore .Design package. During publish our output directory included lots of localization files that are unnecessary for us.
After some googling we came across these relevant threads:
https://stackoverflow.com/questions/48424796/net-core-build-produces-localization-folders
https://stackoverflow.com/questions/48893450/visual-studio-2017-localization-publish-settings
https://stackoverflow.com/questions/20342061/disable-dll-culture-folders-on-compile/60655083#60655083
#774
The approach that worked for us was adding
<SatelliteResourceLanguages>en-US</SatelliteResourceLanguages>
.And for a time all was well, until we changed our publish command to emit to a custom
--output
location. That change (and only that change) caused the publish output to suddenly contain all those unnecessary localization directories again.After a clean build:
Changing nothing but adding an explicit
--output
:I don't understand why changing the output location would cause the output to differ, but it makes me very nervous. I'd expect identical commands but with a custom output location to produce identical outputs.
The text was updated successfully, but these errors were encountered: