From 6e438005b05747f2656209318c7f4fa0c77ad323 Mon Sep 17 00:00:00 2001 From: niksedk Date: Thu, 27 Aug 2015 22:41:16 +0200 Subject: [PATCH] Making version maintaining easier (only update in SubtitleEdit AssemblyInfo.cs - libse auto updated) --- build_helpers.bat | 4 +- libse/LibSE.csproj | 5 + libse/Properties/AssemblyInfo.cs | 35 ---- libse/Properties/AssemblyInfo.cs.template | 15 ++ libse/Utilities.cs | 17 +- src/UpdateAssemblyInfo/Program.cs | 210 +++++++++++++++------- 6 files changed, 175 insertions(+), 111 deletions(-) delete mode 100644 libse/Properties/AssemblyInfo.cs create mode 100644 libse/Properties/AssemblyInfo.cs.template diff --git a/build_helpers.bat b/build_helpers.bat index b9adb1d84..dc259950e 100644 --- a/build_helpers.bat +++ b/build_helpers.bat @@ -38,9 +38,9 @@ IF NOT EXIST "src\UpdateAssemblyInfo\bin\Release\UpdateAssemblyInfo.exe" IF NOT ) IF EXIST "src\UpdateAssemblyInfo\bin\Release\UpdateAssemblyInfo.exe" ( - "src\UpdateAssemblyInfo\bin\Release\UpdateAssemblyInfo.exe" "src\Properties\AssemblyInfo.cs.template" "src\Properties\AssemblyInfo.cs" + "src\UpdateAssemblyInfo\bin\Release\UpdateAssemblyInfo.exe" "src\Properties\AssemblyInfo.cs.template" "libse\Properties\AssemblyInfo.cs.template" ) ELSE ( - "src\UpdateAssemblyInfo\bin\Debug\UpdateAssemblyInfo.exe" "src\Properties\AssemblyInfo.cs.template" "src\Properties\AssemblyInfo.cs" + "src\UpdateAssemblyInfo\bin\Debug\UpdateAssemblyInfo.exe" "src\Properties\AssemblyInfo.cs.template" "libse\Properties\AssemblyInfo.cs.template" ) IF %ERRORLEVEL% NEQ 0 ( diff --git a/libse/LibSE.csproj b/libse/LibSE.csproj index d6a9a57cf..7fe4ee062 100644 --- a/libse/LibSE.csproj +++ b/libse/LibSE.csproj @@ -437,6 +437,11 @@ + + IF NOT EXIST "$(ProjectDir)Properties\AssemblyInfo.cs" ( + COPY "$(ProjectDir)Properties\AssemblyInfo.cs.template" "$(ProjectDir)Properties\AssemblyInfo.cs" +) +