aboutsummaryrefslogtreecommitdiff
path: root/Program.cs
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@gmail.com>2021-01-09 11:44:29 -0500
committerAndrew Lee <alee14498@gmail.com>2021-01-09 11:44:29 -0500
commit8f8ed503424d49c432bf9477bd20fbfbf4995693 (patch)
treeced0db1332291d141108c5baea1079d77d86b300 /Program.cs
parent2115d78c52d7fe76a901a8ec6093702f45f94229 (diff)
downloadFakeCMD-8f8ed503424d49c432bf9477bd20fbfbf4995693.tar.gz
FakeCMD-8f8ed503424d49c432bf9477bd20fbfbf4995693.tar.bz2
FakeCMD-8f8ed503424d49c432bf9477bd20fbfbf4995693.zip
Added some debug only features and target windows only
Diffstat (limited to 'Program.cs')
-rw-r--r--Program.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Program.cs b/Program.cs
index d988de0..b7e7c3c 100644
--- a/Program.cs
+++ b/Program.cs
@@ -7,9 +7,13 @@ namespace FakeCMD
{
static void Main(string[] args)
{
+#if DEBUG
+ Console.WriteLine("You are running .NET {0}", Environment.Version.ToString());
+#endif
RegistryKey registryKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
var buildNumber = registryKey.GetValue("UBR").ToString();
Console.WriteLine($"Microsoft Windows [Version {buildNumber}]");
+ Console.ReadLine();
}
}
}