Skip to content

Remove nuget frameworks dependency - #2544

Closed
Jakub Jareš (nohwnd) wants to merge 3 commits into
microsoft:mainfrom
nohwnd:remove-nuget.frameworks
Closed

Jakub Jareš (nohwnd) wants to merge 3 commits into
microsoft:mainfrom
nohwnd:remove-nuget.frameworks

Conversation

@nohwnd

@nohwnd Jakub Jareš (nohwnd) commented Aug 27, 2020 •

Copy link
Copy Markdown
Member

ℹ️ Replaced by #4693

Description

Translate short and long framework names ourselves instead of depending on Nuget.Frameworks

@nohwnd

Copy link
Copy Markdown
Member Author

Vritant Bhardwaj (@vritant24) this is what I need to do to replace Nuget.Frameworks. Are you able to validate that this would fix the LUT issue?

Maybe we should add additional logic that will create a netcoreapp like Framework object from any net* string as a fallback? that way when net5.1 or net6.0 are finally added we don't have to update the class as long as they are in the form of net. I think something similar is happening in the SDK because setting the TFM to net7.99.123 will produce: The current .NET SDK does not support targeting .NET Core 7.99.123. Either target .NET Core 5.0 or lower, or use a version of the .NET SDK that supports .NET Core 7.99.123.

Version = "4.6.2.0",
ShortName = "net462",
},
[".NETFramework,Version=v4.6.3"] = new Framework

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, missing .NETFramework 47*?

@nohwnd
Jakub Jareš (nohwnd) marked this pull request as draft August 28, 2020 10:07
@vritant24

Vritant Bhardwaj (vritant24) commented Aug 28, 2020 •

Copy link
Copy Markdown
Member

I'm not sure of the entire information that the testplatform has access to, but it looks like currently it is operating on TargetFramework. There is also TargetFrameworkMoniker that is much more consistent across the different runtimes.

This project system doc elaborates on that reasoning. For instance in the .NET 5 upgrade, the TargetFramework for is net5.0 but the TargetFrameworkMoniker is .NetCoreApp,Version=5.0 and didn't change from .NetCore 3.1. This suggestion is also in the .NET 5 spec

@nohwnd

Copy link
Copy Markdown
Member Author

Vritant Bhardwaj (@vritant24) thanks for the tip, but imho that is relevant only to msbuild and project properties, we don't use any of those. We look at TFM attribute in the assembly, because vstest console handles only built dlls.

@MarcoRossignoli

Copy link
Copy Markdown
Contributor

Looks like too stale to revive, I'm going to close(lot of conflicts and we bumped a lot of versions in these time frame).

@nohwnd

Copy link
Copy Markdown
Member Author

Marco Rossignoli (@MarcoRossignoli) that merge does not look that bad, might have a look on it when I am back.

@nohwnd Jakub Jareš (nohwnd) self-assigned this Jun 16, 2023
@MarcoRossignoli

Marco Rossignoli (MarcoRossignoli) commented Jun 19, 2023 •

Copy link
Copy Markdown
Contributor

Marco Rossignoli (@MarcoRossignoli) that merge does not look that bad, might have a look on it when I am back.

Yep doesn't look so bad and we should catch issue with new tfm really soon in the dogfooding/insertion process.

cc: Sam Harwell (@sharwell)

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

Successfully merging this pull request may close these issues.

5 participants