此产品不支持脚手架Visual Studio 2019 [英] There are no scaffolders supported for this item Visual Studio 2019
问题描述
我正在使用Visual Studio 2019 16.0.4版,并且尝试在asp.net core 2.1(在views文件夹中)上创建一个视图或部分视图,但出现错误
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
该产品不支持脚手架
There are no scaffolders supported for this item
然后我意识到当您在项目中有一个名为"Pages"的文件夹时发生此问题,我们将该文件夹用于剃须刀页面.
Then I realized this problem happens when you have a folder which its name is "Pages" in your project that we use this folder for razor pages .
如果我删除pages文件夹,则视图支架可以工作.当我放回原处时,它又坏了.
If I remove the pages folder then the views scaffold works. When I put it back it is broken again.
我不知道这是不是bug,但是我需要在项目中同时使用页面和视图...
I don't know it is a bug or not but I need to use both pages and views together on my project...
推荐答案
我几周前检查了一下,看来我的更新似乎解决了这个问题.
I checked it couple weeks ago and it seems solved by the updates i guess.
这篇关于此产品不支持脚手架Visual Studio 2019的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!