No executable found matching command "dotnet-aspnet-codegenerator"
vs2017,mvc新建控制器报错.
右键项目,选择编辑工程文件(.csproj),加入以下节点
<ItemGroup> <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0-msbuild3-final" /> </ItemGroup>