Skip to content

Use full TargetFrameworkMoniker in NuGetRestorer #615

Closed

Description

We are temporarily using the short tfm to exchange with NuGet's Nominate Restore in #524 to workaround two issues:

  • TargetFrameworkMoniker is not available until first restore. This results in default TFM NET Framework 4.0 always being sent.
  • NuGet should use target framework in generated props/targets that matches the TF in the Project File. So e.g. if the Project File has TF netcoreapp10, we exchange canonical TFM .NETCoreApp,Version=v1.0 that NuGet processes to netcoreapp1.0, which is different from what is in the file. One solution would be for NuGet to filter by canonical TFM instead of TF.

Once these are resolved, revert back to using the full TargetFrameworkMoniker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions