public void PrintStartupMessage()\r
{\r
ChatBufferItem title = new ChatBufferItem(\r
- DateTime.Now, Properties.Resources.RadegastTitle, ChatBufferTextStyle.StartupTitle);\r
+ DateTime.Now, Properties.Resources.RadegastTitle + "." + RadegastBuild.CurrentRev, ChatBufferTextStyle.StartupTitle);\r
\r
ChatBufferItem ready = new ChatBufferItem(\r
DateTime.Now, "Ready.\n", ChatBufferTextStyle.StatusBlue);\r
<DependentUpon>Settings.settings</DependentUpon>\r
<DesignTimeSharedInput>True</DesignTimeSharedInput>\r
</Compile>\r
+ <Compile Include="RadegastBuild.cs" />\r
</ItemGroup>\r
<ItemGroup>\r
<None Include="Resources\arrow-forward_16.png" />\r
<Target Name="AfterBuild">\r
</Target>\r
-->\r
+ <PropertyGroup>\r
+ <PreBuildEvent>$(ProjectDir)\updatebuildnr.bat</PreBuildEvent>\r
+ </PropertyGroup>\r
</Project>
\ No newline at end of file
--- /dev/null
+// Autogenerated: run updatebuildnr.bat/sh to update \r
+namespace Radegast \r
+{ \r
+ public static class RadegastBuild { public static int CurrentRev = 124; } \r
+} \r
--- /dev/null
+@echo off\r
+FOR /F "tokens=2 skip=4" %%G IN ('svn info') DO ^\r
+IF NOT DEFINED REVISION SET REVISION=%%G\r
+echo // Autogenerated: run updatebuildnr.bat/sh to update > RadegastBuild.cs\r
+echo namespace Radegast >> RadegastBuild.cs\r
+echo { >> RadegastBuild.cs\r
+echo public static class RadegastBuild { public static int CurrentRev = %REVISION%; } >> RadegastBuild.cs\r
+echo } >> RadegastBuild.cs\r