Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update copyright date, simplify version number and refactor it into a property. #30

Merged
merged 1 commit into from
May 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Nova/WinForms/Launcher/NovaLauncher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
16 changes: 12 additions & 4 deletions VersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,21 @@

[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:
//
// 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.
Expand All @@ -70,3 +70,11 @@
[assembly: ComVisible(false)]

[assembly: NeutralResourcesLanguageAttribute("en-US")]

public static class VersionInfo
{
/// <summary>
/// The current version number of Nova.
/// </summary>
public const string VersionNumber = "0.4.2";
}