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

后端 未结 13 2253
佛祖请我去吃肉
佛祖请我去吃肉 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 03:12

    A more robust answer than copying version numbers into your configuration file is to use NuGet to ensure that the packages are added to your project.

    Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution.

    First, get everything up to date. Choose the Updates tab. Check the box for Update All and run this a few times. Don't be surprised if some stuff downgrades the first couple of times you run the upgrade. Some dependencies seem to have to be handled sequentially. It took me about 5 upgrades to get everything up to date.

    Then, in the browse tab, search for CodeGeneration.Tools. Install it. Do the same for CodeGenerators.Mvc. As you find additional error messages, you should be able to find any missing packages in NuGet.

    0 讨论(0)
提交回复
热议问题