5
Vote

Power Tools: Context menu commands not working in project under solution folder

description

None of the actions from the file context menu is working when the project is under a solution folder. A message box saying “Sequence contains no matching element” is displayed, no exception is written to the output window. It was not an issue with the CTP 1.

file attachments

comments

nazbrok wrote Nov 15, 2012 at 12:36 AM

is there a workaround for this error ?

BriceLambson wrote Dec 13, 2012 at 6:49 PM

Fixed in changeset 8e544cfe54db

mgirgin wrote Jan 18 at 10:09 PM

Moved Release to EF6

Dennis_Wanke wrote Feb 24 at 2:16 PM

Still the same error with EF Power Tools Beta 3 and VS 2012 Update 1

RoMiller wrote Feb 27 at 11:25 PM

Moving back to Active as we have seen reports of this in Beta 3 of the Power Tools.

@Dennis_Wanke - Any chance you could provide a solution that re-produces the issue? We haven't been able to get the error to occur with Beta 3.

Dennis_Wanke wrote Feb 28 at 8:19 AM

@RoMiller: actually, there is nothing special about the solution to reproduce it. Just make a class derived from DbContext and put its containing project under any solution folder. Then right-click the CLASS FILE and try out any command from Entity Framework sub-menu (e.g. “View Model …”). For me, it doesn’t work. Than take the project off from the solution folder and it works just fine.
Just in case, I made the solution for you – please find it in the attachment.

dharric wrote Apr 14 at 1:12 PM

Thanks @RoMiller. Also I am using Visual Studio 2012 11.0.051106.01 Update 1.

dharric wrote Apr 14 at 2:34 PM

Fyi. I just updated to VS 2012 Update 2 and no difference.

shinena wrote Apr 17 at 1:52 PM

Simple workaround: Create a new solution and ADD the EXISTING EntityFramwork-based project to the solution. You can now do all the Power-tools magic and any changes you do to the classes will obviously reflect in the original solution.