[NonVS] Power Tools don't work when project is under a solution folder


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

Closed Oct 11, 2013 at 10:10 PM by Mugdhak


nazbrok wrote Nov 15, 2012 at 1:36 AM

is there a workaround for this error ?

BriceLambson wrote Dec 13, 2012 at 7:49 PM

Fixed in changeset 8e544cfe54db

mgirgin wrote Jan 18, 2013 at 11:09 PM

Moved Release to EF6

Dennis_Wanke wrote Feb 24, 2013 at 3:16 PM

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

RoMiller wrote Feb 28, 2013 at 12:25 AM

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, 2013 at 9: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, 2013 at 2:12 PM

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

dharric wrote Apr 14, 2013 at 3:34 PM

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

shinena wrote Apr 17, 2013 at 2: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.

LouisLewis wrote May 27, 2013 at 11:46 PM

Hi There, I am using Visual Studio 2012, I have tried all the work arounds listed above and also that I could find via search engines. I have to my knowledge all the updates to vs and power tools. None of my context menu items work. this is quite frustrating as management is constantly asking me for update on our ERD.
To create this I have to first change out my connection strings, let my program create the database, then start up a new solution and use the Ado.Net Entity Data Model to reverse engineer the database and then from that start moving things around so that I can provide them with the updated ERD. We are busy with a massive re-write and this primarily based upon EF code first. When can we expect a solution to this linger problem which is clearly hassling a lot of fellow developers our there?

TJSobol wrote Jul 10, 2013 at 11:52 AM

The same for me: VS2012 Premium version 11.0.60610.01 update 3, EF5, Power Tools beta3, very simple MVC4 project with DbContext class etc. I was trying many variants, advises and tutorials, including reinstallations (also from scratch for VS) and nothing helps.

BriceLambson wrote Oct 3, 2013 at 7:51 PM

Fixed in changeset 1660a763b2efefbc82523f7f1ccada9602b8292d