Skip to content

Automatic AdditionalFiles and source generator reference in non-Razor SDK projects #11834

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

Open
davidwengier opened this issue May 7, 2025 · 0 comments

Comments

@davidwengier
Copy link
Member

Cohosting requires the Razor source generator be referenced in a project, and the source generator requires that documents be AdditionalFiles. When these things don't happen, either because someone is not using the Razor SDK, or they have just customized their build in some way (eg, MAUI Blazor used to do this, maybe still does) we need to override things on the Roslyn side, to ensure tooling will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants