-
I installed this CsWin32 package in netstandard2.0 class library. But it is giving error to use c#9.0 to support I have used BCRYPT* in that NativeMethods.txt |
Beta Was this translation helpful? Give feedback.
Answered by
AArnott
Feb 22, 2024
Replies: 1 comment 2 replies
-
Down-level C# language version support is spotty. You should be able to fix this by adding this to your project file: <LangVersion>9</LangVersion> Of course, I like to go all the way and use 12. C# 12 has the appropriate guards to keep you on the right path when targeting older runtimes. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
pavinan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Down-level C# language version support is spotty. You should be able to fix this by adding this to your project file:
Of course, I like to go all the way and use 12.
C# 12 has the appropriate guards to keep you on the right path when targeting older runtimes.