Index: dam engine/trunk/src/Deltares.DamEngine.Version/Deltares.DamEngine.Version.csproj
===================================================================
diff -u
--- dam engine/trunk/src/Deltares.DamEngine.Version/Deltares.DamEngine.Version.csproj (revision 0)
+++ dam engine/trunk/src/Deltares.DamEngine.Version/Deltares.DamEngine.Version.csproj (revision 871)
@@ -0,0 +1,60 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {4F235915-BF77-427C-9F8F-F2F05242C764}
+ Library
+ Properties
+ Deltares.DamEngine.Version
+ Deltares.DamEngine.Version
+ v4.5
+ 512
+
+
+ true
+ ..\bin\Debug\
+ DEBUG;TRACE
+ full
+ x86
+ prompt
+ MinimumRecommendedRules.ruleset
+
+
+ ..\bin\Release\
+ TRACE
+ true
+ pdbonly
+ x86
+ prompt
+ MinimumRecommendedRules.ruleset
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ "$(ProjectDir)..\..\utils\svn_insert_version.cmd" "$(ProjectDir)" GlobalAssembly.cs.svn GlobalAssembly.cs
+
+
+
\ No newline at end of file
Index: dam engine/trunk/src/DamEngine.sln
===================================================================
diff -u -r761 -r871
--- dam engine/trunk/src/DamEngine.sln (.../DamEngine.sln) (revision 761)
+++ dam engine/trunk/src/DamEngine.sln (.../DamEngine.sln) (revision 871)
@@ -29,6 +29,8 @@
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Deltares.DamEngine.TestHelpers", "Deltares.DamEngine.TestHelpers\Deltares.DamEngine.TestHelpers.csproj", "{A41683F4-C3E0-4386-AEE7-FAACD535CF93}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Deltares.DamEngine.Version", "Deltares.DamEngine.Version\Deltares.DamEngine.Version.csproj", "{4F235915-BF77-427C-9F8F-F2F05242C764}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
@@ -71,6 +73,10 @@
{A41683F4-C3E0-4386-AEE7-FAACD535CF93}.Debug|x86.Build.0 = Debug|x86
{A41683F4-C3E0-4386-AEE7-FAACD535CF93}.Release|x86.ActiveCfg = Release|x86
{A41683F4-C3E0-4386-AEE7-FAACD535CF93}.Release|x86.Build.0 = Release|x86
+ {4F235915-BF77-427C-9F8F-F2F05242C764}.Debug|x86.ActiveCfg = Debug|x86
+ {4F235915-BF77-427C-9F8F-F2F05242C764}.Debug|x86.Build.0 = Debug|x86
+ {4F235915-BF77-427C-9F8F-F2F05242C764}.Release|x86.ActiveCfg = Release|x86
+ {4F235915-BF77-427C-9F8F-F2F05242C764}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Index: dam engine/trunk/build/Deltares.DamEngine.Version.targets
===================================================================
diff -u
--- dam engine/trunk/build/Deltares.DamEngine.Version.targets (revision 0)
+++ dam engine/trunk/build/Deltares.DamEngine.Version.targets (revision 871)
@@ -0,0 +1,35 @@
+
+
+
+ Debug
+ x86
+ Library
+ true
+ $(MSBuildThisFileDirectory)
+ $(SolutionDir)\bin\$(Configuration)\
+ $(OutputPath)
+ x86
+ v4.0
+ 4
+ 512
+ true
+ Properties
+ prompt
+ MinimumRecommendedRules.ruleset
+
+
+ DEBUG;TRACE
+ full
+
+
+ TRACE
+ pdbonly
+ none
+
+
+
+
+ GlobalAssembly.cs
+
+
+
\ No newline at end of file
Index: dam engine/trunk/utils/svn_insert_version.cmd
===================================================================
diff -u -r302 -r871
--- dam engine/trunk/utils/svn_insert_version.cmd (.../svn_insert_version.cmd) (revision 302)
+++ dam engine/trunk/utils/svn_insert_version.cmd (.../svn_insert_version.cmd) (revision 871)
@@ -2,9 +2,7 @@
@ECHO off
ECHO "svn_insert_version.cmd started"
-REM REMEMBER ORIGINAL WORKING FOLDER AND GO TO THE SOURCES DIRECTORY
SET ORG_DIR=%CD%
-cd ..\..
SET argcount=0
FOR %%x IN (%*) DO SET /A argcount+=1
@@ -30,11 +28,13 @@
SET OUTTEXTFILE=%3
)
+CD %1
+
ECHO "parsing svn info in directory %CD%"
REM GET THE SVN VERSION NUMBER AND REVISION PATH
FOR /f "tokens=1,* delims=�" %%A IN ('svn info') DO (
- ECHO %%A | findstr /I /C:"Last Changed Rev" && SET REV_BUF=%%A
+ ECHO %%A | findstr /I "^Revision" && SET REV_BUF=%%A
ECHO %%A | findstr /I "^URL" && SET ROOT_BUF=%%A
ECHO %%A | findstr /I /C:"Repository Root" && SET AFTER_BUF=%%A
)
@@ -43,7 +43,7 @@
SET SVN_REV=0
SET SVN_ROOT=
) ELSE (
- SET SVN_REV=%REV_BUF:~18%
+ SET SVN_REV=%REV_BUF:~10%
SET SVN_ROOT=%ROOT_BUF:~5%
SET "FIND=*%AFTER_BUF:~17%
CALL SET SVN_ROOT=%%SVN_ROOT:!FIND!=%%
@@ -52,7 +52,6 @@
ECHO "using rev %SVN_REV% and root %SVN_ROOT%"
REM SUBSTITUTE THE VERSION NUMBER IN TEMPLATE
-CD %1
ECHO "modifying %OUTTEXTFILE% in directory %1"
SET SEARCHTEXT=SVNREV
SET SEARCHROOT=SVNROOT
@@ -66,7 +65,7 @@
ECHO "writing new %OUTTEXTFILE%"
REM This command can process version files which contain special character "!"
-call powershell -Command "(gc %INTEXTFILE%) -replace '%SEARCHTEXT%', '%SVN_REV%' | Out-File -encoding ASCII %OUTTEXTFILE%
+call powershell -Command "(gc %INTEXTFILE%) -replace '%SEARCHTEXT%', '%SVN_REV%' | Out-File -encoding UTF8 %OUTTEXTFILE%
)
Index: dam engine/trunk/src/Deltares.DamEngine.Version/GlobalAssembly.cs.svn
===================================================================
diff -u
--- dam engine/trunk/src/Deltares.DamEngine.Version/GlobalAssembly.cs.svn (revision 0)
+++ dam engine/trunk/src/Deltares.DamEngine.Version/GlobalAssembly.cs.svn (revision 871)
@@ -0,0 +1,12 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Deltares")]
+[assembly: AssemblyCopyright("Copyright © Deltares 2018")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+[assembly: AssemblyVersion("18.1.0.SVNREV")]
+[assembly: AssemblyFileVersion("18.1.0.SVNREV")]
\ No newline at end of file
Index: dam engine/trunk/src/Deltares.DamEngine.Version/Properties/AssemblyInfo.cs
===================================================================
diff -u
--- dam engine/trunk/src/Deltares.DamEngine.Version/Properties/AssemblyInfo.cs (revision 0)
+++ dam engine/trunk/src/Deltares.DamEngine.Version/Properties/AssemblyInfo.cs (revision 871)
@@ -0,0 +1,7 @@
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Deltares.DamEngine.Version")]
+[assembly: AssemblyProduct("Deltares.DamEngine.Version")]
+[assembly: ComVisible(false)]
+[assembly: Guid("4f235915-bf77-427c-9f8f-f2f05242c764")]