Customizing VS.Net start page

L

Lucvdv

Has anyone ever tried to find out how VS.Net 2003 fills its start page?

The project MRU list is sorted by modification date of the .sln files by
default, but those files are rarely modified. As a result, the main
projects I work in every day drop off the bottom of the list, while it is
filled up with small temporary test projects I create for trying something
out.

In VS.Net 2002, you can edit the generateMRUTableItems() function in the
file 'vshome.js' in common7\IDE\HTML\1033, and the changes are reflected on
the start page (but in .Net 2002 you don't need to, because it sets the
..sln modification date when a project is opened).

In VS.Net 2003 this file still exists, but it was moved to the
Common7\IDE\HTML directory, and editing it has no effect anymore: I suppose
they included it in some DLL as a resource, and the .js version is there
for nothing.
 
L

Lucvdv

In VS.Net 2003 this file still exists, but it was moved to the
Common7\IDE\HTML directory, and editing it has no effect anymore: I suppose
they included it in some DLL as a resource, and the .js version is there
for nothing.

As expected, I found it as a resource in Common7\IDE\1033\vsbrowseUI.dll,
but editing it there has no effect either :(
 
L

Lucvdv

As expected, I found it as a resource in Common7\IDE\1033\vsbrowseUI.dll,
but editing it there has no effect either :(


OOPS - sorry, wrong group (should have been .vsnet.general).


Anyway, fixing it through extensibility turned out to be __easy__

Hit "Tools", "Macros", "Macros IDE".
Open "My Macros", "EnvironmentEvents"

Paste in this code after the "Automatically generated" block:

Private Sub SolutionEvents_BeforeClosing() _
Handles SolutionEvents.BeforeClosing
Dim f As New System.IO.FileInfo(DTE.Solution.FullName)
f.LastWriteTime = Now
End Sub

Now each time a solution is closed, the modification time on the .sln file
is set to the current time, so it's at the top of the list the next time
you start the IDE.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top