添加实体框架核心(1.1.0)迁移时,dotnet exec需要托管的.dll或.exe扩展名 [英] dotnet exec needs a managed .dll or .exe extension while adding Entity Framework Core (1.1.0) Migrations
本文介绍了添加实体框架核心(1.1.0)迁移时,dotnet exec需要托管的.dll或.exe扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
错误消息:
PM> Add-Migration InitialDatabase
dotnet exec needs a managed .dll or .exe extension. The application specified was 'C:\Users\xxxxxx\documents\visual studio 2017\Projects\TheWorld\src\TheWorld\bin\Debug\netcoreapp1.0\TheWorld.runtimeconfig.json'
Process finished with non-zero exit code
PM>
Visual Studio版本:2017 RC
Visual Studio Version: 2017 RC
项目依赖项:
错误屏幕截图:
推荐答案
我遇到了同样的问题.我唯一要做的就是更改Project属性中的Target Framework.
I had the same problem. The only thing I had to do is changing the Target Framework in the Project properties.
我希望这会有所帮助.
这篇关于添加实体框架核心(1.1.0)迁移时,dotnet exec需要托管的.dll或.exe扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文