Skip to content

WRN_GeneratorFailedDuringGeneration isn't helpful without a StackTrace #48008

@Youssef1313

Description

@Youssef1313

I currently have a source generator that fails with:

CSC : warning CS8785: Generator 'MySourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentOutOfRangeException' with message 'Specified argument was out of the range of valid values.'

I think providing a StackTrace will be very useful.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions