Update the projects to .NET 8, drop support for .Net Framework, clean up unreachable code. #1573
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
My attempt at dropping support for .Net Framework and supporting .NET 8.
I did these changes mechanically as possible, and would love discussing if there is a desire for this? I'm happy to make any/all changes the team wants.
My goal here is using .NET 8 to support all OSes and making it easy to use the dotnet tool version of this repo.
net472
from all<TagetFramework>
and<TargetFrameworks>
elements.<TagetFrameworks>
and<TargetFramework>
because this only targets only framework now.net472
build artifacts.if NETFRAMEWORK
. In a few cases I tried to chase down the resulting unreachable code this caused and remove it from the project as well.The two spots I am the most unsure of my changes are removing support for the OsBroker, which looked like it only worked under .Net Framework and Windows, and removing the interactive auth window.
I did not clean up the Auth options enum because the values had assigned numbers and I didn't want to affect anything which relies on the already assigned numbers.