You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to put some of my Controllers and Views of my ASP.Net Core 3 pre-release 9 MVC Project in a different Project. Therefor I went with an Razor Class Library since as the documentation says:
Razor views, pages, controllers, page models, Razor components, View components, and data models can be built into a Razor class library (RCL).
So I went ahead and created a RCL Project which looks something like the following:
Also if it is the case that netcoreapp3.0 is the only possible TargetFramework, the template for RazorClassLibraries should be updated. They currently use netstandard2.0.
For anyone else interested and having the same issue, you need to add this attribute <AddRazorSupportForMvc>true</AddRazorSupportForMvc> to your .csproj of the RCL.
Describe the bug
I am trying to put some of my Controllers and Views of my ASP.Net Core 3 pre-release 9 MVC Project in a different Project. Therefor I went with an Razor Class Library since as the documentation says:
So I went ahead and created a RCL Project which looks something like the following:
I included the FrameworkReference instead of a PackageReference for the
Microsoft.AspNetCore.App
since the following issue tells me so. #3756But this leaves me with the following error:
The text was updated successfully, but these errors were encountered: