Add-Migration: Exception throws "AddFromFile" with arguments "1": "basePath" cannot be an empty string ("")

I get an error when I run add-migration using entitcore for any dotnetcore based project, but the equivalent command works when targeting full dotnetframework

Add-Migration: Exception that throws "AddFromFile" with argument "1": "basePath" cannot be an empty string ("")

see snapshot of my code. This app is for dotnetcore console. The same will work if a project is created based on dotnetframewok 4.6.1 enter image description here

+4
source share
2 answers

. (C:\Projects), , :

, "ErrorActionPreference" "": " " \HOME\Admin\Documents\Visual Studio 2017\Projects\WebApiEFCore\WebApiEFCore\obj\project.assets.json ' .

, , .

, , , .

, .

+2

, , ForeignKey, , ,  enter image description here

0

Source: https://habr.com/ru/post/1672414/


All Articles