diff --git a/Nova/WinForms/Launcher/NovaLauncher.cs b/Nova/WinForms/Launcher/NovaLauncher.cs index fe27af3d..4efc81ed 100644 --- a/Nova/WinForms/Launcher/NovaLauncher.cs +++ b/Nova/WinForms/Launcher/NovaLauncher.cs @@ -49,7 +49,7 @@ public NovaLauncher() // Show the Nova version string version = Application.ProductVersion; string[] versionParts = version.Split('.'); - string productVersion = string.Join(".", versionParts, 0, 4); + string productVersion = string.Join(".", versionParts, 0, 3); AssemblyName assemblyName = Assembly.GetExecutingAssembly().GetName(); int buildNumber = assemblyName.Version.Build; diff --git a/VersionInfo.cs b/VersionInfo.cs index f1d5e174..bdb5a50d 100644 --- a/VersionInfo.cs +++ b/VersionInfo.cs @@ -44,7 +44,7 @@ [assembly: AssemblyProduct("Stars! Nova")] [assembly: AssemblyCompany("The Stars-Nova Project")] -[assembly: AssemblyCopyright("Copyright (C) 2017 The Stars-Nova Project")] +[assembly: AssemblyCopyright("Copyright (C) 2020 The Stars-Nova Project")] [assembly: AssemblyCulture("")] // Version information for an assembly consists of the following four values: @@ -52,13 +52,13 @@ // Major Version // Minor Version // Build Number -// Revision +// Revision (optional) // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("0.4.2.889")] +[assembly: AssemblyVersion(VersionInfo.VersionNumber)] #if !PocketPC && !Smartphone -[assembly: AssemblyFileVersion("0.4.2.889")] +[assembly: AssemblyFileVersion(VersionInfo.VersionNumber)] #endif // Set the assembly to CLS compliant. @@ -70,3 +70,11 @@ [assembly: ComVisible(false)] [assembly: NeutralResourcesLanguageAttribute("en-US")] + +public static class VersionInfo +{ + /// + /// The current version number of Nova. + /// + public const string VersionNumber = "0.4.2"; +} \ No newline at end of file