entity framework - Azure Function : Enable-Migrations Exception calling “SetData” with “2” argument(s) -


getting below error after command enable-migrations -force

i using entityframework version=6.1.3

exception calling "setdata" "2" argument(s): "type 'microsoft.visualstudio.projectsystem.vs.implementation.package.automation.oaproject' in assembly      'microsoft.visualstudio.projectsystem.vs.implementation, version=15.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a' not marked serializable."     @ \6.0.0\tools\entityframework.psm1:609 char:5     +     $domain.setdata('project', $project)     +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~         + categoryinfo          : notspecified: (:) [], methodinvocationexception         + fullyqualifiederrorid : serializationexception      exception calling "setdata" "2" argument(s): "type  

as far know, “exception calling "setdata" "2" argument(s) exception:” error message means don't set right project name in application.

there 2 ways solve error.

one way choosing right project name in package manager console.

enter image description here

then set right project name in package manager console.

enter image description here

another way directly pass -startupproject or -startupprojectname paramete enable-migrations command.

more details, refer answer.


Comments

Popular posts from this blog

git - TortoiseGit does not show commit log properly -

string - Using python and postgres, variables within execute function? -