Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET, Visual Studio 2008, SVN - Reading revision number at compile time?

Does any one know if there is a way to access a solution/project's revision number from SVN and incorporate this in application code at compile time?

Thanks

like image 685
UpTheCreek Avatar asked Dec 22 '10 15:12

UpTheCreek


People also ask

How do I find my svn revision number?

To find information about the history of a file or directory, use the svn log command. svn log will provide you with a record of who made changes to a file or directory, at what revision it changed, the time and date of that revision, and, if it was provided, the log message that accompanied the commit.

How do I see all revisions in svn?

If you want to see what changed in that revision, try pointing svn log directly at the topmost URL of your repository, as in svn log -r 2 ^/ .

What is svn revision number?

As we described in the section called “Revisions”, revision numbers in Subversion are pretty straightforward—integers that keep getting larger as you commit more changes to your versioned data. Still, it doesn't take long before you can no longer remember exactly what happened in each and every revision.

How do I find old revision in svn?

Use the merge dialogIn your working copy select TortoiseSVN → Merge. In the Merge Type dialog select Merge a range of revisions. In the From: field enter the full repository URL of your working copy folder. This should come up as the default URL.


1 Answers

Disclaimer: I was a member of the project at the time of writing this. Though, I still recommend AutoBuildVersion.

Yes, AutobuildVersion does together with the SVN PlugIn provide such a functionality.

like image 200
Bobby Avatar answered Nov 03 '22 08:11

Bobby