NullableAttribute Missing #67044
Unanswered
TaffarelJr
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What would cause
CSharpScript.Create(...)
to not be able to find/generate theNullableAttribute
class?I have a C# script that references an external DLL (.NET 7) containing an extension method. The script compiles just fine, and I can confirm it successfully calls the extension method.
string
tostring?
(nullable), the script still compiles and runs just fine--which I assume means it can handle nullable reference types.string
tostring?
(nullable), then it bombs with the following errors:I really don't know of any way to debug this issue. My understanding is, the attribute should be generated automatically by the compiler; so what could possibly be preventing it?
https://github.com/dotnet/roslyn/blob/main/docs/features/nullable-metadata.md
Beta Was this translation helpful? Give feedback.
All reactions