Today while opening a win-form project, I got an exception message like this from Visual Studio. And then the Visual Studio project was not available in the solution. All the project said was “The project file cannot be loaded.” This error is because the project was under Subversion version control, and I don’t have Subversion [...]
Posts Categorized: Visual Studio
Unit Testing Windows Phone Applications
Recently Microsoft released Update 2 for Visual Studio 2012. If you installed the Update 2, you will get a new project template, under Windows Phone, Windows Phone Unit Test App. This will help you to create unit test project for Windows Phone 8 applications. Once you create the project, necessary references will be added to [...]
Retrieving the COM class factory for component failed due to the following error: 800702e4.
While working on some outlook C# application I got a COM exception like this. Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005. My code was simply straight forward, I was just creating the instance of the outlook application. And this code was used in a different [...]
How to install NuGet packages directly
If you are developing applications using VS 2010 Express editions, you will miss the Package Manager console, which helps us to install libraries or packages via NuGet. The Nuget package manager console is not integrated to VS 2010 Express editions.(Visual Web Developer Express is an exception, it has a package manager console integration). To overcome [...]
How to exclude test assembly from code coverage in VS 2012
If you are using VS 2012, by default Code coverage results are available for Test assembly also. There is no direct way to disable this behavior, either you need to use the ExcludeFromCodeCoverage attribute or you need to use the runsettings file. The ExcludeFromCodeCoverage is pretty straight forward; you need to decorate all the unit [...]
Extract to User Control feature in Visual Studio 2012
The Visual Studio 2012 comes with a nice feature allows web developers to refactor aspx markup into user controls, called Extract to User Control, this feature is available in context menu. To use this feature, simply highlight the bits and pieces to extract and then right-click and click Extract to User Control. Which will display [...]