No executables found matching command 'dotnet-aspnet-codegenerator'"

后端 未结 13 2302
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-15 02:16

When trying to add a Controller in an ASP.NET Core project using Visual Studio 15 Enterprise with Update 3, I get the error below:

\"The was an error running

13条回答
  •  醉酒成梦
    2020-12-15 02:49

    1. I had to add the following to my CSProj file:

    
        
        
        
    

    1. After adding that I installed CodeGenerators.Mvc with nuget package manager.

    2. I was still getting an error saying it can't find some file in the MCD folder so I had to copy and paste the entire bin\Debug\netcoreapp1.1 folder into bin\MCD\Debug\netcoreapp1.1

    I ran the scaffolding and it worked!

提交回复
热议问题