Skip to content

Page to render razor outside of ASP.Net Core needs additional information or references #34188

@dipique

Description

@dipique

Description

The solution described in the article works and is highly valuable.

However, following the steps creates an environment that is highly atypical and difficult to use. It is unclear what limitations are present and how those limitations might be overcome.

At the very least, the article needs a section that includes a (non-exhaustive) list/description of limitations like what you see in Nuget libraries that generate strings from razor pages. Assembly binding? Access to HtmlHelpers? Partial views? Layouts? Raw HTML? Use of @model/@inherit?

It would also be really nice if there was a section that briefly touched on how to deal with limitations that exist. For example, I have wasted hours trying to insert raw HTML from a file into my razor view -- without success. And, of course, because of the atypical environment, it is difficult to find applicable advice. So far, I've concluded that you just can't--but it would be extremely helpful to either have that explicitly called out or have a workaround for these basic operations either linked or included in the article.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-components-outside-of-aspnetcore?view=aspnetcore-9.0&preserve-view=true

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/components/render-components-outside-of-aspnetcore.md

Document ID

12387a0a-7052-5419-5aae-82879c1d2904

Article author

@guardrex

Related Issues

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions