在添加Entity Framework Core(1.1.0)迁移时,dotnet exec需要托管的.dll或.exe扩展

big*_*shr 3 c# entity-framework-core asp.net-core-mvc visual-studio-2017

错误信息:

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> 
Run Code Online (Sandbox Code Playgroud)

Visual Studio版本:2017 RC

项目依赖性:

项目依赖性

错误截图: 错误截图

小智 6

我有同样的问题.我唯一要做的就是在Project属性中更改Target Framework.

更改框架版本

我希望这有帮助.