dotnet / NuGet.BuildTasks

The build tasks used to pick up package content from project.lock.json.
MIT License
45 stars 61 forks source link

Annotate assembly references from NuGet packages with ResolveFrom metadata #85

Open nkolev92 opened 4 years ago

nkolev92 commented 4 years ago

@kzu commented on Mon, 19 Sep 2016 18:37:30 GMT @(ReferencePath) from regular assembly references contain metadata like ResolvedFrom={TargetFrameworkDirectory} or ResolvedFrom=ImplicitlyExpandDesignTimeFacades. It would be nice if the references added by ResolveNuGetPackageAssets annotated the reference as resolved by NuGet (maybe ResolvedFrom=Package?).

Currently, because this metadata isn't provided, they end up having ResolvedFrom={RawFileName}.

This would allow other tooling/targets to tell apart these references from others. (yes, I know the presence of the NuGetPackageId metadata can be used for the same, but for consistency with the way references are managed elsewhere, it would still be useful).