The Wayback Machine - https://web.archive.org/web/20220110122658/https://github.com/dotnet/aspnetcore/issues/39404
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

the runtime compilation of Razor Class Library is not working correctly at dotnet 6.0 #39404

Open
1 task done
liangpeihui opened this issue Jan 10, 2022 · 1 comment
Open
1 task done

Comments

@liangpeihui
Copy link

@liangpeihui liangpeihui commented Jan 10, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

In dotnet 6, I wanted to enable runtime compilation of RazorClassLibrary, in addition to adding the content root of the RCL, I had to set the project property of the RCL class library, "RazorCompileOnBuild", to false. I looked at the ViewDescriptor for the RCL class library and found that it doesn't have the RazorSourceChecksumAttribute feature.
But in dotnetcore 5, you don't need to set the project properties of the RCL to get a ViewDescriptor with the RazorSourceChecksumAttribute feature.
By the way, the Hosing Startup of Microsoft.AspNetCore.Mvc.Razor.RuntimCompilation NuGet Package is not working properly at aspnetcore project in dotnet6 runtime, because Hosting Startups is executed at WebApplication.CreateBuilder(). The related service has not yet been added to the dependent container.

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

6.0.101

Anything else?

No response

@liangpeihui
Copy link
Author

@liangpeihui liangpeihui commented Jan 10, 2022

There is a case where a web page is updated without restarting the app, and obviously, hot loading is not appropriate.

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

Successfully merging a pull request may close this issue.

None yet
1 participant