There are no scaffolders supported for this item Visual Studio 2019

前端 未结 7 2023
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-03 19:52

I\'m using Visual Studio 2019 version 16.0.4, and I tried to create a view or a partial one on asp.net core 2.1 (in views folder) but I get an error

7条回答
  •  时光取名叫无心
    2021-01-03 20:17

    None of the above fixed my issue, so I thought I'd leave feedback as well. Updating .NET versions fixes this for me. I was on 4.5 and moved up to 4.5.2. To test this, I created a sibling project of the same type (.NET MVC Web) with 4.5.2, and tried to create scaffolding items again, and it works.

    I will either use the new project to house my scaffolding items, or try to upgrade my original project to 4.5.2. I'm sure any version over 4.5.2 would work as well, but I'm using an older one due to server architecture.

    UPDATE: It would appear that updating the version is not what solved the issue. So it was the act of adding a new project that works... I'm not sure why though. I will update this again if I find out.

提交回复
热议问题