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>
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top