✅ Field is not initialized by the source generator: System.NullReferenceException
Hello,
I have a source generator that should initialize a field with an empty value.
The source generator is in
When running a project that uses UaDetector, a NullReferenceException is thrown.
The source generator initializes any field that uses the
The following code is generated:
I have a source generator that should initialize a field with an empty value.
The source generator is in
UaDetector.SourceGenerator, and it's used byUaDetector.The generation succeeds when UaDetector project is build.When running a project that uses UaDetector, a NullReferenceException is thrown.
The source generator initializes any field that uses the
Regexes attribute. (currently with an empty list).The following code is generated:
UaDetector references the surce generator the following way: