dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.

Home Page:https://asp.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ready repository with an example WebAssemblyPrerendered and Razor Pages

Alerinos opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

Can you create a ready-made repository with an example of using Blazor Webassembly and Razor page?
https://docs.microsoft.com/en-us/aspnet/core/blazor/components/prerendering-and-integration?view=aspnetcore-6.0&pivots=webassembly

Describe the solution you'd like

Unfortunately, when using VS 2022, not all templates are generated correctly. For example, _Layout. Also, in my opinion, the guide is too general. I am talking about copying Layout to server and then suddenly without any information it is required to change the Layout in Client in which there is no this file.

Additional context

Thank you very much, I think it will help many people.

Thanks for contacting us.

We're moving this issue to the .NET 7 Planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s).
If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues.
To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

commented

Thanks for contacting us.
Can you please clarify what is the challenge that you see here?
In your described scenario where both Blazor WebAssembly and Razor Pages are involved, you sure have to have a server piece to host the Razor page. Hence, it should be a hosted Blazor WebAssembly application, and the server project would then be a perfect fit for the Razor file (.cshtml).

Hi @Alerinos. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@mkArtakMSFT
if I remember correctly, there was a problem with the generated template. VS generated new simplified templates and the example required an advanced one. As a result, much of the code was not available, so you had to look in the documentation or on stackoverflow.
It would be useful to supplement the guide with the full _layout etc code or create a ready-made guide on github.

Hi. Thanks for contacting us.
We're closing this issue as there was not much community interest in this ask for quite a while now.
You can learn more about our triage process and how we handle issues by reading our Triage Process writeup.