65.9K
CodeProject is changing. Read more.
Home

VS Recent Project List Cleaner

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.10/5 (9 votes)

Jan 22, 2004

viewsIcon

54097

downloadIcon

1312

How to clear Visual Studio .NET Recent Project List.

Sample Image

Introduction

This application was created to give me a way to easily clear some VS project items on VS Start Up page. This application simply explores the registry location where VS.NET stores Projects Lists. Also, the application will check if a project is still existing and mark it as [Broken Link] if it doesn't exist anymore showing that you can remove that project from the recent list.

Background

This application was built using Microsoft Visual Studio .NET 2003, maybe it doesn't list and clear projects list from previous versions of VS.NET. But you can easy update the code to handle another VS.NET registry location.

Using the code

The code also shows how to access the Windows registry and retrieve/delete/update values from/to it. The Registry.cs file is not mine, it can be in other author submissions here.

//This is the registry location for the VS.Net 2003 Recent list
public string RegistryValueKey = 
  @"Software\Microsoft\VisualStudio\7.1\ProjectMRUList";

Points of Interest

Some parts of this code were easy to migrate from my VB6 version utility.