Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit e60f9256 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

release candidate versions

adding suffix for RC versions in version number (GUI, reports), adding explicit message that this version is not for certification
parent a278d2e5
No related branches found
No related tags found
No related merge requests found
......@@ -151,8 +151,12 @@ namespace TUGraz.VectoCore.OutputData.XML
private XElement GetApplicationInfo()
{
var versionNumber = VectoSimulationCore.VersionNumber;
#if RELEASE_CANDIDATE
versionNumber += " !!NOT FOR CERTIFICATION!!";
#endif
return new XElement(tns + XMLNames.Report_ApplicationInfo_ApplicationInformation,
new XElement(tns + XMLNames.Report_ApplicationInfo_SimulationToolVersion, VectoSimulationCore.VersionNumber),
new XElement(tns + XMLNames.Report_ApplicationInfo_SimulationToolVersion, versionNumber),
new XElement(tns + XMLNames.Report_ApplicationInfo_Date,
XmlConvert.ToString(DateTime.Now, XmlDateTimeSerializationMode.Utc)));
}
......
......@@ -342,8 +342,12 @@ namespace TUGraz.VectoCore.OutputData.XML
private XElement GetApplicationInfo()
{
var versionNumber = VectoSimulationCore.VersionNumber;
#if RELEASE_CANDIDATE
versionNumber += " !!NOT FOR CERTIFICATION!!";
#endif
return new XElement(tns + XMLNames.Report_ApplicationInfo_ApplicationInformation,
new XElement(tns + XMLNames.Report_ApplicationInfo_SimulationToolVersion, VectoSimulationCore.VersionNumber),
new XElement(tns + XMLNames.Report_ApplicationInfo_SimulationToolVersion, versionNumber),
new XElement(tns + XMLNames.Report_ApplicationInfo_Date,
XmlConvert.ToString(DateTime.Now, XmlDateTimeSerializationMode.Utc)));
}
......
......@@ -36,10 +36,17 @@ namespace TUGraz.VectoCore.Utils
{
public static class VectoSimulationCore
{
#if RELEASE_CANDIDATE
private const string SUFFIX = "-RC";
#else
private const string SUFFIX = "";
#endif
public static string VersionNumber
{
get {
return "<#= GetVectoCoreVersionNumber() #>";
return "<#= GetVectoCoreVersionNumber() #>" + SUFFIX;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment