Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/IO/VersionInfo.cs =================================================================== diff -u -r3899 -r4055 --- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/IO/VersionInfo.cs (.../VersionInfo.cs) (revision 3899) +++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/IO/VersionInfo.cs (.../VersionInfo.cs) (revision 4055) @@ -1,18 +1,18 @@ // Copyright (C) Stichting Deltares 2023. All rights reserved. // -// This file is part of the application DAM - UI. +// This file is part of the application DAM - Live. // -// DAM - UI is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by +// DAM - Live is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the GNU General Public License +// You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . // // All names, logos, and references to "Deltares" are registered trademarks of @@ -28,7 +28,6 @@ [XmlNoKey] public class VersionInfo { - /// The current file version /// FileVersion 0 is for versions 18.1.3 and earlier. /// FileVersion 1 is for version 19.1.1. @@ -43,19 +42,14 @@ // Executing should always hit the line here first as fileversion should be read from the xml // If it stops at the DamProject breakpoint first, you know serialization/de-serialization // of the designresults is wrong. - private int fileVersion; /// /// Gets or sets the file version. /// /// /// The file version. /// - public int FileVersion - { - get { return fileVersion; } - set { fileVersion = value; } - } // Default is 0 and indicates the situation that FileVersion was not introduced yet + public int FileVersion { get; set; } // Default is 0 and indicates the situation that FileVersion was not introduced yet /// Gets or sets the assembly name with which the input file is being created. /// The program version. @@ -73,6 +67,7 @@ /// [XmlIgnore] public int FileVersionAsRead { get; set; } + /// Gets or sets the assembly name with which the input file has been created. /// The assembly version as read. [XmlIgnore] @@ -86,12 +81,13 @@ /// Initializes the version information to the current program version. public void InitVersionInfo() { - FileVersion = VersionInfo.CurrentFileVersion; + FileVersion = CurrentFileVersion; var hostAssembly = Assembly.GetEntryAssembly(); if (hostAssembly == null) { hostAssembly = Assembly.GetExecutingAssembly(); } + AssemblyName = hostAssembly.GetName().Name; AssemblyVersion = hostAssembly.GetName().Version.ToString(); }