Injects the current VCS revision into a .NET assembly build.


Injects the current VCS revision of a working directory in a custom format into a .NET assembly build or just displays it.

See for further information and download the latest build NetRevisionTool.exe.

Quick reference

To print the help use the following command: NetRevisionTool.exe /?


NetRevisionTool is a small developer’s tool that prints out the current Git or SVN revision info of a working directory. It can automatically write that revision information into your application’s code so that it’s compiled right into it. This works for .NET solutions written in C# and VB.NET using the regular Visual Studio project structure.

Currently the following VCS (version control system) are supported:

  • Git
  • Subversion

More systems can easily be added in the code.


Every bigger-than-small application has a version number that the user can query in some form of About dialog window. If you release often and don’t want to manage semantic version numbers like major.minor.patch (as for NetRevisionTool itself), you might just use the Git or SVN revision identifier or commit time as version number for your program.

By automating the copying of that revision ID into the application source code, you can avoid forgetting that update. Also, possible keyword replacing features of Git/SVN itself do not play very well with C#/VB.NET source code in creating a friendly version for that assembly. NetRevisionTool is optimised for this scenario and can adapt to special wishes.

Licence and terms of use

This software is released under the terms of the GNU GPL licence, version 3. You can find the detailed terms and conditions in the download or on the GNU website.

Related Repositories



Injects the current VCS revision into a .NET assembly build. ...

Top Contributors

ygoe xmedeko


-   v2.5.2 zip tar
-   v2.5.1 zip tar
-   v2.5 zip tar
-   v2.4 zip tar
-   v2.3.3 zip tar
-   v2.3.2 zip tar
-   v2.3.1 zip tar
-   v2.3 zip tar
-   v2.2 zip tar
-   v2.1 zip tar
-   v2.0.1 zip tar
-   v2.0 zip tar