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

Show friendly names for target framework in project properties #1595

Closed
dsplaisted opened this issue Feb 21, 2017 · 10 comments
Closed

Show friendly names for target framework in project properties #1595

dsplaisted opened this issue Feb 21, 2017 · 10 comments
Milestone

Comments

@dsplaisted
Copy link
Member

The project properties page looks like it's using the target framework identifier for the Target Framework dropdown for .NET Core and .NET Standard. It should be using a friendlier name instead.

For example, instead of .NETStandard 1.4, it should show .NET Standard 1.4. Instead of .NETCoreApp 1.1 it should show .NET Core 1.1.

This is probably related to #795, but could be fixed separately for the hard-coded list.

@panopticoncentral
Copy link
Contributor

@tannergooding Stealing this because it is related to #1672, let me know if you disagree.

@abpiskunov
Copy link
Contributor

Check this PR #1880 , you might be interested in ITargetFrameworkProvider component...

@davkean
Copy link
Member

davkean commented Mar 29, 2017

@abpiskunov I don't want a dependency on NuGet in paths that have never had it before, as mentioned a few times, I want this to come from either the build or a VS service such as IVsFrameworkMultiTargeting. We should not require NuGet to be serviced to add a new framework version.

@abpiskunov
Copy link
Contributor

abpiskunov commented Mar 29, 2017 via email

@davkean
Copy link
Member

davkean commented Mar 29, 2017

These dlls do not depend on NuGet - this runs in the legacy project system, I'm not loading NuGet just to get data that VS already should know about - especially as it already knows about all other platforms except .NET Core/.NET Standard.

@abpiskunov
Copy link
Contributor

abpiskunov commented Mar 29, 2017 via email

@davkean
Copy link
Member

davkean commented Mar 29, 2017

This change lives in a dll that is shared between many projects. NuGet also isn't consulted for TFM compatibility for project references or getting the right output from the project. NuGet isn't is the right place for this code - it's not even involved in lots of these code paths, it should be consuming the VS data TFM data not the reverse.

@srivatsn
Copy link
Contributor

srivatsn commented Mar 29, 2017

Actually NuGet is consulted for project reference compatibility in the SDK. However, I agree that NuGet is not the right place for this logic. It should probably be extracted out into some common API that's unrelated to NuGet and then we should replace all uses of NuGet for compat check with that API.

@srivatsn
Copy link
Contributor

Roslyn also uses the NuGet API for the Add using fixer and that needs to be fixed as well.

@panopticoncentral
Copy link
Contributor

Fixed with #795

@panopticoncentral panopticoncentral removed their assignment May 5, 2017
@drewnoakes drewnoakes removed the Bug label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants