-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NuGet.Localization package includes unncessary resource assemblies #11342
Comments
hmm perhaps there should be a node like: |
Hi @dominoFire , could you help take a look? Thanks! |
We can consider removing NuGet.PackageManagement is designed to work with VS, whose localization ships inside VS. That requires further analysis.
@pranavkm Please tell us which assembly resources are needed in dotnet SDK. Thanks! |
I think a much better option is to be able to tell the .NET SDK to not include to resource assemblies by adding support to msbuild for: <ExcludeResourceAssemblies>true</ExcludeResourceAssemblies> on project/package references. |
We know which assembly resources are needed in the .NET SDK, it's the ones that we insert. We can clean up the authoring of the NuGet.Localization package, https://github.com/NuGet/NuGet.Client/blob/a8b6b1fb3a1bccd207a83612cd0f5e1f4ff1d0b8/src/NuGet.Core/NuGet.Localization/NuGet.Localization.nuspec#L21. Alternatively, the installer could probably exclude certain files if necessary? |
@nkolev92 do you have historical context for why NuGet doesn't ship translations in their respective packages, rather than this |
I don't have really have all the context. Package size was probably a pretty big concern. Localized packages are not the smoothest experience. I think there's a |
From @dominoFire's table, NuGet.Localization.resources.dll can be removed, since there is no assembly/code (it's not used either by the .NET SDK or by VS) |
Hmm I wonder why there cant be a way to have all of the resources from all of the assemblies into a single central assembly. Like |
NuGet Product(s) Affected
dotnet.exe
Current Behavior
The NuGet.Localization assembly is extracted as-is by the .NET SDK as part of creating it's layout. It looks like the package contains resources for the
NuGet.VisualStudio.Contracts.dll
but not the primary dll itself. Here's what I get if I list the contents of the .NET 6 SDK:Desired Behavior
I'm not certain, but it looked like the localization package is only consumed by the SDK. In which case the assembly could be dropped from the package, helping reduce the total size of the installer. Alternatively, we'd have consider doing something in the SDK to trim the assembly as part of consuming this package.
Additional Context
No response
The text was updated successfully, but these errors were encountered: