Monday, April 06, 2009

Reopening EDMX file in Visual Studio

In a complete unrelated search I've come across a post from Andrew Siemer where he mention a problem that has plagued me once in a while.

Sometimes, Visual Studio forgets how to open an EDMX file.

Although that on his post he says that the only fix would be to close and re-open the solution, there's another one, far more easy in my humble opinion.

Simple right-click the EDMX file, click Open With... and select XML Editor.

After opening the EDMX file with the XML Editor, double click the EDMX file and Visual Studio should open it properly... until you close the file again.

Then just repeat the steps above to have it open again.


Blogger John said...

Awesome! This tip will save me hours on the project I'm working on!

1/20/2010 11:20 AM  
Blogger Sanjay Zalke said...

Great!!! another silly bugs from Microsoft. The work around works great.


3/08/2010 9:11 AM  

Post a Comment