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

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

    For the latest version, in project.json add the following under dependencies:

    "Microsoft.VisualStudio.Web.CodeGeneration.Tools": {
      "version": "1.1.0-preview4-final",
      "type": "build"
    },
    "Microsoft.VisualStudio.Web.CodeGenerators.Mvc": {
      "type": "build",
      "version": "1.1.0-preview4-final"
    }
    

    and the following under tools:

    "Microsoft.VisualStudio.Web.CodeGeneration.Tools": {
      "version": "1.1.0-preview4-final",
      "imports": [
        "portable-net45+win8"
      ]
    }
    

提交回复
热议问题