-
-
Notifications
You must be signed in to change notification settings - Fork 918
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
Support .NET 7.0 #3329
Support .NET 7.0 #3329
Conversation
src/GraphQL.ApiTests/netstandard20+netstandard21/GraphQL.approved.txt
Outdated
Show resolved
Hide resolved
.NET Core 3.1 will go EOL mid December 2022 and .NET 5.0 is already EOL (https://dotnet.microsoft.com/en-us/download/dotnet) Those targets could be removed as well when NET 7 is released. Supporting those EOL frameworks will be ok using the netstandard2.x targets. |
src/GraphQL.ApiTests/netstandard20+netstandard21/GraphQL.approved.txt
Outdated
Show resolved
Hide resolved
GraphQL.NET only targets .NET Standard 2.0, .NET Standard 2.1 and .NET 6, as there are no ifdefs for other target frameworks. System.Text.Json includes a target for .NET Core 3.1 because System.Text.Json is included with .NET Core 3.0+. As such, the dependency can be eliminated. At present I see no reason to change the targeted frameworks. I feel that .NET Core 3.1 is especially important because not only it is a LTS release, a number of the packages developed at that time are cross-platform compatible with .NET Framework -- for example, Entity Framework Core 3.1.x. While perhaps these applications can all run on .NET 6, when using the 3.1.x components of that time, it may be more likely that applications written for .NET Core 3.1 designed to be cross compatible with .NET Framework may not yet be upgraded to .NET 6. There is a similar situation that exists with .NET Core 2.1 for web applications -- hence why GraphQL.NET Server 7.x now supports .NET Framework and .NET Core 2.1 web applications. (Note that in that situation, there is official support from Microsoft for ASP.NET Core 2.1.x when run on supported editions of .NET Framework.) I would have little argument against removing .NET 5 code -- it was never a LTS release and is more of a preview of .NET 6, just like .NET Core 3.0 was compared to .NET Core 3.1. But yet, there is no reason to at this time. If and when it becomes troublesome to perform development/testing for older frameworks (e.g. trying to develop/test .NET Framework 4.5 applications today), we will likely drop those frameworks from the test suite and/or libraries at that time. Thanks for the PR! As you suggest, we likely will not merge the PR until .NET 7.0 is released. |
Well, I'm not so positive to quickly remove support for "old" TFMs especially if this support is given at low price. |
Agree. Let's merge ASAP after NET7 release. |
@@ -39,10 +39,11 @@ jobs: | |||
name: Documentation | |||
path: docs2/public/** | |||
if-no-files-found: error | |||
- name: Setup .NET Core 6.0 SDK | |||
- name: Setup .NET 7.0 SDK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: Setup .NET 7.0 SDK | |
- name: Setup .NET SDK |
@@ -16,10 +16,11 @@ jobs: | |||
- name: Checkout source | |||
uses: actions/checkout@v3 | |||
|
|||
- name: Setup .NET Core SDK | |||
- name: Setup .NET 7.0 SDK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: Setup .NET 7.0 SDK | |
- name: Setup .NET SDK |
.github/workflows/publish-code.yml
Outdated
@@ -46,10 +46,11 @@ jobs: | |||
name: Documentation | |||
path: docs2/public/** | |||
if-no-files-found: error | |||
- name: Setup .NET Core 6.0 SDK | |||
- name: Setup .NET 7.0 SDK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: Setup .NET 7.0 SDK | |
- name: Setup .NET SDK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine to merge this one after resolving conflicts and .NET7 release.
@sungam3r Merged master into the PR:
|
|
|
I see growing mails from dependabot updating different stuff to 7.0.0 😮 but I don't see 7.0.0 release on MS site yet. |
Codecov Report
@@ Coverage Diff @@
## master #3329 +/- ##
=======================================
Coverage 83.84% 83.84%
=======================================
Files 376 376
Lines 16274 16274
Branches 2610 2613 +3
=======================================
Hits 13645 13645
Misses 2011 2011
Partials 618 618 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
NET 7 was released today. Merged master into the PR branch and removed the dotnet-quality=preview lines from the github workflows. |
Visual Studio 17.4 hasn't been released yet. Probably it will be within a day or so and then we can merge this. |
I have run VS installer just now - 2.4 Gb update for 17.4 :) |
.NET 7.0 just went RC (rc.1) and expected to be officially released in mid November 2022. This PR should be merged once .NET 7.0 is released on November, however in the meantime the build process can be validated.
Note:
Before merging
include-prerelease: true
lines should be removed from the github workflowactions/setup-dotnet@v2
actions.