c# - Enable-Migrations Not Working Because of the Windows on Mac -


i mac user want develop c# via visual studio. therefore, have parallels account programme switching os windows while using it.

firstly, let me introduce error getting: (trying package manager console inside of nuget package manager)

cannot determine valid start-up project. using project 'codefirstnewdatabasesample' instead. configuration file , working directory may not set expected. use -startupprojectname parameter set 1 explicitly. use -verbose switch more information.

exception calling "loadfrom" "1" argument(s): "could not load file or assembly 'file://\mac\home\desktop\visual studio 2015\projects\codefirstnewdatabasesample\packages\entityframework.6.1.3\tools\e ntityframework.powershell.utility.dll' or 1 of dependencies. operation not supported. (exception hresult: 0x80131515)" @ \mac\home\desktop\visual studio 2015\projects\codefirstnewdatabasesample\packages\entityframework.6.1.3\tools\entityframework.psm1:780 char:62 + $utilityassembly = [system.reflection.assembly]::loadfrom <<<< ((join-path $toolspath entityframework.powershell.utility.dll)) + categoryinfo : notspecified: (:) [], methodinvocationexception + fullyqualifiederrorid : dotnetmethodexception

you cannot call method on null-valued expression. @ \mac\home\desktop\visual studio 2015\projects\codefirstnewdatabasesample\packages\entityframework.6.1.3\tools\entityframework.psm1:781 char:50 + $dispatcher = $utilityassembly.createinstance <<<< ( + categoryinfo : invalidoperation: (createinstance:string) [], runtimeexception + fullyqualifiederrorid : invokemethodonnull

exception calling "createinstancefrom" "8" argument(s): "could not load file or assembly 'file://\mac\home\desktop\visual studio 2015\projects\codefirstnewdatabasesample\packages\entityframework.6.1 .3\tools\entityframework.powershell.dll' or 1 of dependencies. operation not supported. (exception hresult: 0x80131515)" @ \mac\home\desktop\visual studio 2015\projects\codefirstnewdatabasesample\packages\entityframework.6.1.3\tools\entityframework.psm1:809 char:31 + $domain.createinstancefrom <<<< ( + categoryinfo : notspecified: (:) [], methodinvocationexception + fullyqualifiederrorid : dotnetmethodexception

vs2015 downloaded on system. have model class , local database on want able change database via migrations. however, i'm having trouble achieving , think reason behind fact windows in on mac this question suggests. thought in way because when wanted access visual studio projects on windows system, entered directory named home on 'mac'(y:) under network location (the exact path followed computer->home on 'mac'(y:)[under network location tab]->documents->visual studio 2015). again, answer in question suggests, cut , paste desktop of windows system. later realized, able reach desktop network locations tab in computer directory.

i hope had same trouble before , solved can me it.

waiting answers,

thanks,

i have same configuration (osx + parallels) , had same problem you. when source code on osx shared folder ef package manager console throws message. , link states, problem not mac+parallels having code on network location.

if move code vm's desktop, maybe it's still network location if paralells configured share desktop between mac , windows. try pure windows location, c:\vsprojects

i ended moving code windows location, worked better me, if want keep code on network folder need use -startupprojectname , specify executable project there explicitly.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -