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 --- FakeCMD.csproj | 4 +++- Program.cs | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/FakeCMD.csproj b/FakeCMD.csproj index bfa1a74..f7a6040 100644 --- a/FakeCMD.csproj +++ b/FakeCMD.csproj @@ -2,7 +2,9 @@ Exe - net5.0 + net5.0-windows + Andrew Lee + (C) Copyright 2021 Andrew Lee 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