From 41a5ac2dc85ce45061f22ca3c858f6ef07621bd8 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 6 Jul 2020 09:15:36 +0800 Subject: [PATCH] Remove build event scripts for versions. --- Properties/AssemblyInfo.cs | 4 ++-- SourceGit.csproj | 30 ++++-------------------------- 2 files changed, 6 insertions(+), 28 deletions(-) diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 3c73e67f..e6d9a41d 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -52,5 +52,5 @@ using System.Windows; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.0.0.0")] +[assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/SourceGit.csproj b/SourceGit.csproj index 99e44228..ea95909c 100644 --- a/SourceGit.csproj +++ b/SourceGit.csproj @@ -483,33 +483,11 @@ - @echo off &setlocal -setlocal enabledelayedexpansion - -set file=$(SolutionDir)Properties\AssemblyInfo.cs -set temp=$(SolutionDir)Properties\AssemblyInfo.cs.tmp -set bak=$(SolutionDir)Properties\AssemblyInfo.cs.bk - -echo BACKUP AssemblyInfo -copy /Y %25file%25 %25bak%25 - -echo Find Version -git describe > VERSION -set /P version=<VERSION - -set search=1.0.0.0 -(for /f "delims=" %25%25i in (%25file%25) do ( - set "line=%25%25i" - set "line=!line:%25search%25=%25version%25!" - echo(!line! -))>"%25temp%25" -del /f %25file%25 -del /f VERSION -move %25temp%25 %25file%25 -endlocal + + - del /f $(SolutionDir)Properties\AssemblyInfo.cs -move $(SolutionDir)Properties\AssemblyInfo.cs.bk $(SolutionDir)Properties\AssemblyInfo.cs + + \ No newline at end of file