Closed jnm2 closed 4 years ago
This is likely not possible (it is certainly not possible for PackageReference
, but I haven't tried with PackageDownload
). NuGet does not include props/targets from packages when evaluating the dependency graph.
This makes sense. The package targets aren't available until after the restore phase and the PackageDownload item needs to be present before the restore phase.
I don't like adding the boilerplate PackageDownload line to every csproj. It would be nice to have this in the targets:
If control of the package name is desired, we could do this: