Abp: Use the ".Net Standard 2.0" framework for the web module, we will cannot use the VS feature to create "Areas", "Controller" with the "scaffolder".

Created on 7 Aug 2019  路  2Comments  路  Source: abpframework/abp

Use the ".Net Standard 2.0" framework for the web module, we will cannot use the VS feature to create "Areas", "Controller" with the "scaffolder".
Sometimes we want to use the asp.net core mvc folder structure for web module development. Now if we want to add the "Controller" from the VS 2019 context menu, it will failed.
image

question

Most helpful comment

My approach is to change the project to Microsoft.NET.Sdk.Web. (<Project Sdk="Microsoft.NET.Sdk.Web">)

Then reference to the relevant package(Microsoft.AspNetCore.Razor.Design, Microsoft.VisualStudio.Web.CodeGeneration.Design) in the project, and finally modify it back, I don't know if there are any other good ways.

All 2 comments

My approach is to change the project to Microsoft.NET.Sdk.Web. (<Project Sdk="Microsoft.NET.Sdk.Web">)

Then reference to the relevant package(Microsoft.AspNetCore.Razor.Design, Microsoft.VisualStudio.Web.CodeGeneration.Design) in the project, and finally modify it back, I don't know if there are any other good ways.

Was this page helpful?
0 / 5 - 0 ratings