Zuhaib

A very lazy but meticulous blogger

Archive for the ‘Visual Studio’ Category

Visual Studio 2010 Beta 2 Now Out For Public

without comments

Finally Visual Studio 2010 Beta 2 is out for public (and not just subscribers).  To download visit this link or download the ISO from here. Make sure you completely uninstall Visual Studio 2010 Beta 1 before installing Beta 2.

image_thumb_04B9B051

Visual Studio 2010 brings many new features that we were only able to achieve using 3rd party add-ins like CodeRush/Resharper.

Please visit the below links to learn more about VS 2010 and .NET 4.0 features:

Written by Zuhaib

October 22nd, 2009 at 7:49 am

Posted in .NET, Visual Studio

Tagged with , , ,

MSBuild Context Menu: Build .NET Project/Solution From Explorer

with 2 comments

Sometimes I don’t like opening visual studio just for building the latest source code from the repository. I don’t remember who wrote the original registry tweak for this, but the credit goes to the original author.

The original tweak allowed to compile Visual Studio 2005 solutions as I use Visual Studio 2008 I had to modify the original tweak to make it work with VS2008. Click Here to download the modified files.

image1

Unzip the files and you will see two folders. VS2005 is the original one and VS2008 is the modified version. Each  folder contains two registry files. One to add the commands to windows explorer and another to remove them. If you have both VS2005 and VS2008 installed on your machine you can add both the versions to the registry or you can add either of them.

image2 Once you have merged the files in your windows registry you can see two commands added to your explorer context menu when you right click on any solution or project file. One for Debug build and one for Release build.

When you click on either of the commands a command window will open and you can see you build status.

image3

Download the modified files MSBuild-VS2005-VS2008.zip

Credit goes to the original author.

Written by Zuhaib

May 15th, 2009 at 10:50 am

Clearing AnkhSVN Saved UserName/Password/Authentication Data

with 5 comments

Recently we started using Subversion in our office. We are using VisualSVN Server because it has a nice administration interface, where we can manage user and their rights.

TortoiseSVN is an awesome subversion client, but to have subversion features integrated to our Visual Studio IDE we found two useful plugins VisualSVN and AnkhSVN.

Since AnkhSVN is free and it stable (at least for me) we preferred using it.

The Problem

When you open a project from Subversion repository AnkhSVN will prompt you to authenticate (If you have turned on security in your subversion repository). Once you enter your username and password and check the save password it will not prompt again.

Now what if you change your password? I googled about this for two days but didn’t find any solution. Luckily today my boss found this.

The Solution

The authentication data is saved to the following directories

%APPDATA%\Subversion\auth\svn.ssl.server
%APPDATA%\Subversion\auth\svn.simple

Deleting all the files inside these folders will solve the problem. After deleting these files AnkhSVN will prompt you for username and password once again.

I am currently writing a small Visual Studio Add-in that will help you clear these information from within Visual Studio.

Written by Zuhaib

January 13th, 2009 at 4:38 am