Closed nono3551 closed 3 years ago
Thanks @nono3551. We made some changes in this area so this looks like a regression. If you're able to share your code, it'd help speed up our investigations in this space.
Out of curiosity, are you using runtime compilation?
Thanks @nono3551. We made some changes in this area so this looks like a regression. If you're able to share your code, it'd help speed up our investigations in this space.
Out of curiosity, are you using runtime compilation?
Plan was to use it for faster development since I do not have to restart whole server. But since it is working only for MVC I am not using it very much yet.
Here is link to my repository: https://gitlab.backbone.sk/paco/paco
Thanks for contacting us.
We're moving this issue to the Next sprint planning
milestone for future evaluation / consideration. We will evaluate the request when we are planning the work for the next milestone. To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.
I ran in the same issue when updating to preview 3. I used AddRazorRuntimeCompilation in my startup. Once i removed the line, it worked.
services.AddMvcCore()
.AddFluentValidation()
.AddNewtonsoftJson()
.AddRazorRuntimeCompilation() // this is fine
.AddXmlSerializerFormatters();
services.AddRazorPages();
// .AddRazorRuntimeCompilation(); // with this line, i get "Setting the compiled descriptor on a compiled descriptor is not allowed."
Related issue: https://github.com/dotnet/aspnetcore/issues/35060
This was resolved as part of https://github.com/dotnet/aspnetcore/issues/35060
I wanted to upgrade .NET to latest version so my solution is up to date but I encountered two errors. Problems started when I upgraded microsoft.aspnetcore.mvc.razor.runtimecompilation 5.0.3 TO 6.0.0-preview.1.21103.6. When I downgrade back both issues disappear.
If you would like to see project's code I can try to upload some sources.
For every Blazor page:
For every MVC page: