diff --git a/Build/CommonSettings.targets b/Build/CommonSettings.targets new file mode 100644 index 0000000000000000000000000000000000000000..3e2ec287de5b569d6a4bae09690ed17121dcd97a --- /dev/null +++ b/Build/CommonSettings.targets @@ -0,0 +1,6 @@ +<Project DefaultTargets = "Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" > + <PropertyGroup> + <DefineConstants>$(DefineConstants),RELEASE_CANDIDATE</DefineConstants> + <!-- <DefineConstants>$(DefineConstants),CERTIFICATION_RELEASE</DefineConstants> --> + </PropertyGroup> +</Project> \ No newline at end of file diff --git a/VECTO/VECTO.vbproj b/VECTO/VECTO.vbproj index 0a898998adc2b65387b4569a95edfcd8d104e869..00596fb26a681205404d2f27b5283344ed9c3d55 100644 --- a/VECTO/VECTO.vbproj +++ b/VECTO/VECTO.vbproj @@ -560,4 +560,5 @@ --> <Import Project="$(SolutionDir)Build\TextPreProcessing.targets" /> <Import Project="$(SolutionDir)Build\Packaging.targets" /> + <Import Project="$(SolutionDir)Build\CommonSettings.targets" /> </Project> \ No newline at end of file diff --git a/VectoCommon/VectoCommon/VectoCommon.csproj b/VectoCommon/VectoCommon/VectoCommon.csproj index ada7b6397cef7d1a54ad72d3ea092578c8cbb962..6467ccd9c78fc93aa0cad2d3107517fefc7074d1 100644 --- a/VectoCommon/VectoCommon/VectoCommon.csproj +++ b/VectoCommon/VectoCommon/VectoCommon.csproj @@ -127,4 +127,8 @@ </Target> --> <Import Project="$(SolutionDir)Build\TextPreProcessing.targets" /> + <PropertyGroup Condition="'$(SolutionDir)' == '' or '$(SolutionDir)' == '*undefined*'"> + <SolutionDir>..\..\</SolutionDir> + </PropertyGroup> + <Import Project="$(SolutionDir)Build\CommonSettings.targets" /> </Project> \ No newline at end of file diff --git a/VectoCore/VectoCore/OutputData/XML/XMLCustomerReport.cs b/VectoCore/VectoCore/OutputData/XML/XMLCustomerReport.cs index 1aa6958174b8a6f23226a44cb9a12a6f580442a0..6e00b0a7d0ec1cefc9f503dff0e9f4f9fd5c7922 100644 --- a/VectoCore/VectoCore/OutputData/XML/XMLCustomerReport.cs +++ b/VectoCore/VectoCore/OutputData/XML/XMLCustomerReport.cs @@ -207,7 +207,9 @@ namespace TUGraz.VectoCore.OutputData.XML private XElement GetApplicationInfo() { var versionNumber = VectoSimulationCore.VersionNumber; -#if RELEASE_CANDIDATE +#if CERTIFICATION_RELEASE + // add nothing to version number +#else versionNumber += " !!NOT FOR CERTIFICATION!!"; #endif return new XElement(tns + XMLNames.Report_ApplicationInfo_ApplicationInformation, diff --git a/VectoCore/VectoCore/OutputData/XML/XMLManufacturerReport.cs b/VectoCore/VectoCore/OutputData/XML/XMLManufacturerReport.cs index 59c39dfb2b6b578839b28656143749a98c3be571..1c58cf6f4da3e0a01e801e0a38f090a8d5f6faa8 100644 --- a/VectoCore/VectoCore/OutputData/XML/XMLManufacturerReport.cs +++ b/VectoCore/VectoCore/OutputData/XML/XMLManufacturerReport.cs @@ -384,7 +384,9 @@ namespace TUGraz.VectoCore.OutputData.XML private XElement GetApplicationInfo() { var versionNumber = VectoSimulationCore.VersionNumber; -#if RELEASE_CANDIDATE +#if CERTIFICATION_RELEASE +// add nothing to version number +#else versionNumber += " !!NOT FOR CERTIFICATION!!"; #endif return new XElement(tns + XMLNames.Report_ApplicationInfo_ApplicationInformation, diff --git a/VectoCore/VectoCore/Utils/VectoVersionCore.cs b/VectoCore/VectoCore/Utils/VectoVersionCore.cs index 7d230b6772e424c7342a5c4324099f967fbc6a59..4098e7eeadbdd2e9327a7c8f594d78785b826861 100644 --- a/VectoCore/VectoCore/Utils/VectoVersionCore.cs +++ b/VectoCore/VectoCore/Utils/VectoVersionCore.cs @@ -34,16 +34,20 @@ namespace TUGraz.VectoCore.Utils public static class VectoSimulationCore { +#if CERTIFICATION_RELEASE + private const string SUFFIX = ""; +#else #if RELEASE_CANDIDATE private const string SUFFIX = "-RC"; #else - private const string SUFFIX = ""; + private const string SUFFIX = "-DEV"; +#endif #endif public static string VersionNumber { get { - return "3.3.0.1433" + SUFFIX; + return "3.3.1.1463" + SUFFIX; } } diff --git a/VectoCore/VectoCore/Utils/VectoVersionCore.tt b/VectoCore/VectoCore/Utils/VectoVersionCore.tt index 1a06dcd847e98675285070e9c894d94b2114cab1..8b3c70c80b3605bdc9e143635b2b544247f1cc66 100644 --- a/VectoCore/VectoCore/Utils/VectoVersionCore.tt +++ b/VectoCore/VectoCore/Utils/VectoVersionCore.tt @@ -37,13 +37,14 @@ namespace TUGraz.VectoCore.Utils public static class VectoSimulationCore { -#if BETA_RELEASE - private const string SUFFIX = "-DEV"; +#if CERTIFICATION_RELEASE + private const string SUFFIX = ""; #else #if RELEASE_CANDIDATE private const string SUFFIX = "-RC"; +#else + private const string SUFFIX = "-DEV"; #endif - private const string SUFFIX = ""; #endif public static string VersionNumber diff --git a/VectoCore/VectoCore/VectoCore.csproj b/VectoCore/VectoCore/VectoCore.csproj index 6842dba8c8949cd71698030687ac94e74c3bb0f9..cd16bd897e6e73f613a13a08aabb1d91f0a383c0 100644 --- a/VectoCore/VectoCore/VectoCore.csproj +++ b/VectoCore/VectoCore/VectoCore.csproj @@ -528,4 +528,8 @@ </Target> --> <Import Project="$(SolutionDir)Build\TextPreProcessing.targets" /> + <PropertyGroup Condition="'$(SolutionDir)' == '' or '$(SolutionDir)' == '*undefined*'"> + <SolutionDir>..\..\</SolutionDir> + </PropertyGroup> + <Import Project="$(SolutionDir)Build\CommonSettings.targets" /> </Project> \ No newline at end of file