This project is read-only.


Ability to link to the latest version of a source file


The source code browser is really nice and in my documentation I often link back to source files for explanation or example. However the links are for specific change sets and it's a bit of a pain having to constantly update the links in the documentation. It would be really nice if I could get a link that always points to the latest version of a source file :)


jspence1 wrote Jun 15, 2010 at 7:39 PM

I poked around a little and found out that if you use the BrowseLatest target it redirects to the latest version:

Not sure what happens if you use such a URL and the latest version doesn't have the file anymore, though.

JeffHandley wrote Feb 22, 2013 at 6:21 PM

I just needed this for the NuGet project's home page. I wanted to add a direct link to the latest commit for a file on the page, and I had to connect with Mark Groves to learn this trick.

I suggest that when you browse the source code, it should always be the latest commit by default instead of changing the URL to use the latest commit hash.