The specified deps.json '$$$' does not exist

こ雲淡風輕ζ 提交于 2019-12-05 04:32:56

runtimes section in project.json looks suspicious. As soon as you build for one runtime only - there is no need to use it.

Remove it and rewrite dependency from "Microsoft.NETCore.App":"1.1.0" to "Microsoft.NETCore.App": { "type": "platform", "version": "1.1.0" }.

This will change your app deployment model from "self-contained" (can run on specific platform even without framework) to "framework-dependent" (may run on any platform with framework installed). Details are here.

I had this issue with Visual Studio 2017, I copied all the files including the dll's from the bin\Debug\netcoreapp1.0 to the bin\MCD\Debug\netcoreapp1.0

The scaffolding wasn't working correctly until I copied the files in the bin folder. I am not sure what the MCD folder does but for some reason the scaffolding process looks in this folder.

I ran into this issue during a conference workshop today. After running dotnet ef database update -v to get verbose output and carefully inspecting the paths there were used, I discovered that I had an environment variable set on my Mac that was causing the issue.

If you have PROJECTDIR set inside your environment, the dotnet command may use this to resolve paths and if it does, it will most likely do it in an unexpected manner. Therefore, remove this environment variable from the shell/environment where you are doing your .Net core work.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!