Thomas Adler

Thomas Adler

  • 1.7k
  • 50
  • 1.4k

Tortoise SVN revision number inside C# app log file

Aug 9 2024 2:44 PM

Hello, 
how can I automatically query the current revision from Tortoise Subversion and
log it in my C# app?

Revision, date and comment is best

Do you have any tips?

<PreBuildEvent>
        if exist "C:\Program Files\TortoiseSVN\bin\SubWCRev.exe" 
                 "C:\Program Files\TortoiseSVN\bin\SubWCRev.exe" 
                 "$(ProjectDir)." 
                 "$(ProjectDir)Properties\AssemblyInfo.Base.cs" 
                 "$(ProjectDir)Properties\AssemblyInfo.cs"
</PreBuildEvent>

What I want inside my C# project.


Answers (4)