错误消息:
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
项目依赖项:
错误截图:
最佳答案
我有同样的问题。我唯一需要做的就是更改项目属性中的目标框架。
Changing the framework version
我希望这有帮助。
关于c# - dotnet exec 在添加 Entity Framework Core (1.1.0) 迁移时需要托管 .dll 或 .exe 扩展名,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/41257062/