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(); } } }