summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorGravatar stobies <unknown>2010-02-08 13:17:35 +0000
committerGravatar stobies <unknown>2010-02-08 13:17:35 +0000
commit83d8cdb90612d807c2a932ca601ab6ec9ff5de28 (patch)
treec9725a4c81ef616d9b864d0f7284c637bb14e21c /Source/Core
parent8160620f5a71169cdf7c6f2333ebfe9c7bc285c6 (diff)
Use reflection to read version string from assembly when displaying logo information
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/CommandLineOptions.ssc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/CommandLineOptions.ssc b/Source/Core/CommandLineOptions.ssc
index e3e37ed6..ff2cf94a 100644
--- a/Source/Core/CommandLineOptions.ssc
+++ b/Source/Core/CommandLineOptions.ssc
@@ -16,11 +16,11 @@ namespace Microsoft.Boogie
{
public class CommandLineOptions
{
- public const string VersionNumber = "2.00";
+ public static string! VersionNumber { get { return (!)((!)System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location)).FileVersion; } }
public const string ToolNameBoogie = "Boogie program verifier";
public const string ToolNameSpecSharp = "Spec# program verifier";
public const string ToolNameDafny = "Dafny program verifier";
- public const string VersionSuffix = " version " + VersionNumber + ", Copyright (c) 2003-2009, Microsoft.";
+ public static string! VersionSuffix { get { return " version " + VersionNumber + ", Copyright (c) 2003-2010, Microsoft."; } }
public string! InputFileExtension {
set
modifies _toolname, _version;