Skip to content

Remove dependency on Nuget.Frameworks#4693

Merged
nohwnd merged 15 commits intomicrosoft:mainfrom
nohwnd:remove-nuget.frameworks-try-2
Sep 26, 2023
Merged

Remove dependency on Nuget.Frameworks#4693
nohwnd merged 15 commits intomicrosoft:mainfrom
nohwnd:remove-nuget.frameworks-try-2

Conversation

@nohwnd
Copy link
Copy Markdown
Member

@nohwnd nohwnd commented Sep 22, 2023

Remove dependency on Nuget.Frameworks by copying the relevant code into the repository and changing namespace. The Nuget.Frameworks types were not exposed in our public API directly, but we are relying on the functionality, to parse things like net5.0, net472, or any of similar framework shorthands. We also rely on all the frameworks not being explicitly stated, e.g. net11.0 or any such verison of .NET that does not exist yet.

Replace #2544

Fix #3154

The risk here is that someone is relying on us shipping Nuget.Frameworks into the bin, and not providing it themselves.

The newly added public api should not cause issues for the existing loggers because they ship together with vstest.console.

Loading
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.

NuGet.Frameworks dependency is causing weird test failures when trying to load MSBuild

2 participants