Skip to content
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

'NotNullIfNotNullAttribute' is inaccessible due to its protection level #10

Closed
Sp1rit opened this issue Jul 26, 2021 · 2 comments
Closed

Comments

@Sp1rit
Copy link

Sp1rit commented Jul 26, 2021

The error message above is produced when I use this generator within a .NET Framework project with LangVersion=latest.
Setting SupportNullableStaticAnalysis to false in SourceGenerationOptions works for me.

C#9 is technically not fully supported for .NET Framework, but it works and we are using it for all projects. The supportNullableStaticAnalysis would need another check than just CSharp version.

@mrtaikandi
Copy link
Owner

What version of the .NET are you using?

@Sp1rit
Copy link
Author

Sp1rit commented Jul 29, 2021

.NET Framework 4.7.2

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

No branches or pull requests

2 participants