-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Blazor webassembly in single project #22736
Comments
I seriously doubt it because of dependency injection and aspnetcore having to be restructured to host website roots and knowing which files to serve. I think even Visual Studio it self would need to be modified because it would have to be built differently. Your issue isnt just tied to Blazor WebAssembly but to aspnetcore as a whole pretty much. |
@Stryxus Thanks for your response! |
@malballah thanks for contacting us. It is not possible to have a webassembly app within an asp.net core host within a single project. This is due to the many things @Stryxus has pointed out and some more.
I'm not sure what you mean by this. |
@javiercn |
this only works for razor pages, not razor components |
@javiercn |
I'm not really sure how you are trying to achieve this. You can have multiple independent Blazor apps hosted on a single asp.net core application or you can have a single app with different parts in separate razor class libraries that you can reference from the main app and reuse them. If you are looking at not loading them ahead of time, we have a feature for this in the roadmap. See here for details |
@javiercn |
I am wondering how I can have the the server side and client side projects in a single project.
I am trying to merge the generated server side and client side projects in a single project because I am using module architecture.
Is it possible to do that?.
The text was updated successfully, but these errors were encountered: