Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_Imports.razor not recognized correctly in the source generator #10991

Closed
jjonescz opened this issue Oct 9, 2024 · 0 comments · Fixed by #10992
Closed

_Imports.razor not recognized correctly in the source generator #10991

jjonescz opened this issue Oct 9, 2024 · 0 comments · Fixed by #10992
Assignees
Labels
area-compiler Umbrella for all compiler issues bug Something isn't working

Comments

@jjonescz
Copy link
Member

jjonescz commented Oct 9, 2024

_Imports.razor is disallowed to contain markup etc. Adding e.g., <p>test</p> to an _Imports.razor file results in this design-time error:

Razor(RZ10003): Markup, code and block directives are not valid in component imports.

But the compilation succeeds on command-line and the _Imports.razor file is compiled like a normal component.

@jjonescz jjonescz added area-compiler Umbrella for all compiler issues bug Something isn't working labels Oct 9, 2024
@jjonescz jjonescz self-assigned this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-compiler Umbrella for all compiler issues bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant