Skip to content
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

Treat TargetFramework(s) values as aliases #5154

Open
Tracked by #10846
emgarten opened this issue May 2, 2017 · 21 comments
Open
Tracked by #10846

Treat TargetFramework(s) values as aliases #5154

emgarten opened this issue May 2, 2017 · 21 comments

Comments

@emgarten
Copy link
Member

emgarten commented May 2, 2017

NuGet should treat the values from TargetFramework and TargetFrameworks as aliases.

When setting the property TargetFramework=(alias) the actual target framework value can be evaluated from TargetFrameworkIdentifier and TargetFrameworkVersion.

See for examples and more details: dotnet/project-system#1938

Update by @nkolev92

NuGet in 5.8 and .NET 5.0 SDK now treats TargetFramework as an alias, however duplicate framework entries are not supported yet (ex. You can't target .NETCoreApp,Version=3.0 twice.)

@davkean
Copy link

davkean commented May 10, 2017

Yes, see this guideline I just wrote: https://github.com/dotnet/project-system/blob/master/docs/repo/coding-conventions.md#data

@natidea
Copy link

natidea commented May 23, 2017

RE: dotnet/project-system#615
Nominate currently passes both TF and TFM. TF is the key used to identify each TargetFrameworkInfo object (though the api calls it "TargetFrameworkMoniker"), and TFM is stored in the Properties bag. I'll close dotnet/project-system#615 since we are already passing all the info NuGet needs to make this switch.

@nkolev92
Copy link
Member

nkolev92 commented Mar 9, 2020

@rrelyea we should discuss this and tackle it for .NET 5.0.

@zkat zkat self-assigned this Mar 30, 2020
@zkat zkat mentioned this issue Jul 12, 2021
8 tasks
@zivkan zivkan self-assigned this Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests