-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Add .NET 6 and C# 10 Support #334
Conversation
@Turnerj I tried adding net6.0 to the tool project and found new warnings/errors but I could not then get the main Schem.NET project to build, so rolled that back but kept the fixes for the warning/errors. So the source generator can't target multiple target frameworks? Can we upgrade from netstandard2.0? |
Source generators always have to target .NET Standard 2.0 unfortunately - it is a limitation baked into how they are invoked I believe. Might change when/if VS is no longer using .NET Framework. |
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.
LGTM!
5997177
to
e4cea21
Compare
README.md
to NuGet packages (https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets#packagereadmefile).net6.0
.net461
.ArgumentNullException.ThrowIfNull(...)
.Will update the
.editorconfig
in a later PR and go with file scoped namespaces.