entity framework - Trying to Add-Migration - Exception in Package Manager Console: "Cannot get an instance of EnvDTE.DTE" -
i have been migrating project visual studio 2015 rc. have refactored separate projects. need add migration model change in entity framework open package manager console error message:
set-defaultscaffolder : cannot instance of envdte.dte @ c:\users...\visual studio 2010\projects\myproject\packages\t4scaffolding.core.1.0.0\tools\init.ps1:50 char:30
if clear console , try again, "an exception has been encountered" - more information in activity log. inspect activity log , exception is:
system.argumentoutofrangeexception: specified argument out of range of valid values. parameter name: span @ microsoft.visualstudio.text.snapshotspan..ctor(itextsnapshot snapshot, span span) @ nugetconsole.implementation.console.wpfconsoleclassifier.getclassificationspans(snapshotspan span) @ microsoft.visualstudio.text.classification.implementation.classifiertagger.d__1.movenext() @ microsoft.visualstudio.text.tagging.implementation.tagaggregator`1.d__1.movenext()
i realised had removed packages should not have. re-installed these:
modelscaffolding 0.9.2 mvcscaffolding 1.0.9 t4scaffolding 1.0.8 this appears have taken second exception (argumentoutofrangeexception) away. however, when try add-migration
join-path : cannot bind argument parameter 'path' because null. @ c:\users...\visual studio 2010\projects\myproject\packages\entityframework.6.1.0\tools\entityframework.psm1:713 char:27
i tried uninstalling , re-installing entity framework. noticed during install join-path error displayed again, package-manager continued, , reported successful install. still got error when tried add-migration
then opened solution in visual studio express 2013. still initial cannot instance of envdte.dte error, can clear console window , can add migration - phew!
i'd still rid of error message...and use vs 2015...
there error in nuget vs extension. can fix installing latest nuget (not available through vs yet). may require update of powershell and/or windows management framework.
Comments
Post a Comment