如何解决找不到匹配命令dotnet-ASP net的可执行文件 [英] How to resolve no executable found matching command dotnet-ASP net
问题描述
如何解决找不到匹配命令dotnet-asp net的可执行文件。
我正在使用ASP.NET核心1.0
当我尝试使用实体框架添加一个控制器时我错误地说
运行所选代码生成器时出错:找不到匹配命令'dotnet的可执行文件-aspnet-codegenerator'
谢谢大家
我尝试了什么:
我试图在project.jason文件中更改以下版本
1。 microsoft.VisualStudio.Web.CodeGeneration.Tools
2 Microsoft.VisualStudio.Web.CodeGenerators.Mvc
How do I solve no executable found matching command dotnet-asp net.
I'm using ASP.NET core 1.0
When I try to add a controller using entity framework I et the error that says
"The was an error running the selected code generator: No executables found matching command 'dotnet-aspnet-codegenerator'"
Thanks guys
What I have tried:
I tried to change the version of the following in project.jason file
1. microsoft.VisualStudio.Web.CodeGeneration.Tools
2 Microsoft.VisualStudio.Web.CodeGenerators.Mvc
推荐答案
我发现这是一个谷歌搜索(谷歌是免费的,BTW)
以下包裹到我的project.json:
在依赖项下:
Microsoft.VisualStudio.Web.CodeGenerators.Mvc:{
version :1.0.0-preview2-final,
type:build
}
在工具下:
Microsoft.VisualStudio.Web.CodeGeneration.Tools:{
version:1.0.0- preview2-final,
进口:[
portable-net45 + win8
]
}
I found this with a google search (google is free, BTW)
Asd the following packages to my project.json:
Under dependencies:
"Microsoft.VisualStudio.Web.CodeGenerators.Mvc": {
"version": "1.0.0-preview2-final",
"type": "build"
}
Under tools:
"Microsoft.VisualStudio.Web.CodeGeneration.Tools": {
"version": "1.0.0-preview2-final",
"imports": [
"portable-net45+win8"
]
}
执行cmd时需要在项目的根文件夹中
you need to be in the root folder of your project when executing the cmd
这篇关于如何解决找不到匹配命令dotnet-ASP net的可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!