From 8f8ed503424d49c432bf9477bd20fbfbf4995693 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sat, 9 Jan 2021 11:44:29 -0500 Subject: Added some debug only features and target windows only --- Program.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Program.cs') 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(); } } } -- cgit v1.2.3