-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ResolvePackageDependencies doesn't set same metadata as ResolveNuGetPackageAssets #567
Comments
See my comment in #568 (comment) . This metadata can be set downstream as needed. The package name and version are currently set as metadata on the |
I need that metadata for doing conflict resolution. See https://github.com/dotnet/standard/blob/4392c75933f08108615699038b057389a37c7c4c/netstandard/tools/HandlePackageFileConflicts.cs#L140. For now I just parsed out I don't think it makes sense for this metadata to be added downstream since |
Actually you aren't even preserving the ParentPackage metdata in the Reference items so the code I pointed to is broken. The only way we can get this information back out is to try and parse the path. That's not acceptable. Please preserve package ID and version on Reference and ReferenceCopyLocalPaths. @srivatsn This is not a "feature request" it is a regression from NuGet 3. |
I see. Yes when we create Reference items, we copy data from FileDefinitions into a temporary item to make resolved path the itemspec, but we are not copying those fields. I can add those fields. |
Thank you for fixing this @natidea. This will help the perf of our build tasks since they'll no longer need to enumerate the filesystem to find the nuspec. |
…0190409.7 (dotnet#567) - Microsoft.AspNetCore.Mvc.Analyzers - 3.0.0-preview4-19209-07 - Microsoft.AspNetCore.Mvc.Api.Analyzers - 3.0.0-preview4-19209-07
ResolveNuGetPackageAssets set
NuGetPackageId
andNuGetPackageVersion
metadata but ResolvePackageDependencies does not. Seems like it should if it is replacing it. I know of a few folks that depend on this metadata being set./cc @jasonmalinowski @natidea
See https://github.com/NuGet/NuGet.BuildTasks/blob/4a57a0ef4bee31f122d50a39fe3dddd4ca03fb07/src/Microsoft.NuGet.Build.Tasks/ResolveNuGetPackageAssets.cs#L851-L852
The text was updated successfully, but these errors were encountered: