-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Warning fix using MemberNullAttribute causes accessibility level error. #4763
Comments
I'm seeing the same issue as the other commenter on that issue, where the build completely breaks with the following error message:
as it is, 14.0.3 breaks netstandard compat from what I can tell |
I'm seeing the same issue as well, trying to use the generated C# client in a net472 project. |
The same issue on my side, MemberNotNull shouldn't be emitted when targeting netstandard2.0 |
The same issue for targeting WinX86 runtime in a .Net framework 4.5.2 project |
The same issue on my side as well. Caused by NSwag toolchain v14.0.3.0. |
The same issue with NSwag v14.0.3.0 for a .Net 4.8 project. |
The feature So, the code line
should be as follows to solve the compilation error
|
I need to multi-target |
If you render the code as provided into the generated document, you don't need to multi-target your solution itself. Just the generated output has to provide the 2 additional lines for compiler directives |
Forward duplicated by #4833, fixed since 14.0.6 |
In my netstandard2.0 project, this gives: 'MemberNotNullAttribute' is inaccessible due to its protection level.
Originally posted by @kvansaders in #4704 (comment)
The text was updated successfully, but these errors were encountered: