Getting the Razor templates in a class library
-
18-04-2021 - |
문제
I got a plugin based architecture (using areas) in my solution which works fine.
The problem is that the plugin projects are class libraries and the Add View wizard is therefore not visible when I right-click on the views folder.
Are there a way to get that wizard on the class library? Or are there another way to get scaffolding in the class library project?
해결책
Are there a way to get that wizard on the class library?
Yes, in the .csproj
file of your class library add the following to the first <PropertyGroup>
node:
<ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
제휴하지 않습니다 StackOverflow