Showing posts with label Visual Studio. Show all posts
Showing posts with label Visual Studio. Show all posts

Friday, July 11, 2014

How to open Visual studio 2012 solution in Visual studio 2010?

As we know that if we have lower version solution  then we can open it in upper version but in case of reverse it doesn't allow us to open. In this case we get incompatibility problem. We can make it position by doing some changes in solution file, config file and project file.

In this article, I will explain - How to open Visual studio 2012 solution in Visual studio 2010?

To make it position, Just follow the below steps-

Step 1 -

Open your solution file (.sln) and replace "Format Version 12.00" with "Format Version 11.00"

Step 2 -

Open App.config and replace sku=".NETFramework,Version=v4.5" with sku=".NETFramework,Version=v4.0"

Step 3 -

Open your project file and replace

<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> with
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>

Finally save all the changes and close the files. Now just try to open your solution in Visual studio 2010. It will be opened.

Thanks

Wednesday, March 5, 2014

How to avoid ContextSwitchDeadlock exception?

In some of the cases we face the problem regarding ContextSwitchDeadlock. Actually there are some causes for this exception.

You can check these causes by following this link-

http://msdn.microsoft.com/en-us/library/ms172233%28v=vs.110%29.aspx

In this article, I am explaining - "How can we avoid ContextSwitchDeadlock exception?"

To void the this exception, we need to set some setting in Visual Studio IDE, Check the below steps-

1. Click on "Debug" Menu.
2. After that Click on "Exceptions".
3. It will open one Exception window. Here expand the node- "Manage Debugging Assistants".
4. Here you will find "ContextSwitchDeadlock" CheckBox, just uncheck it.

Follow-

Debug-> Exceptions-> Manage Debugging Assistants -> ContextSwitchDeadlock

Check the below screen shot-


ContextSwitchDeadlock


Just uncheck it and again run the application, This exception will be skipped while run-time.