-
Notifications
You must be signed in to change notification settings - Fork 236
Labels
area-compilerUmbrella for all compiler issuesUmbrella for all compiler issues
Milestone
Description
Version used: .NET v9.0.200
Steps to reproduce:
- Create file
Components/Counter.razor. - Create file
Components_Counter.razor. - Compile.
Actual Result:
CSC : warning CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName 'Components_Counter_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
Expected Result:
Either
- a better error message, or
- success.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-compilerUmbrella for all compiler issuesUmbrella for all compiler issues