diff options
| -rw-r--r-- | FakeCMD.csproj | 4 | ||||
| -rw-r--r-- | Program.cs | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/FakeCMD.csproj b/FakeCMD.csproj index bfa1a74..f7a6040 100644 --- a/FakeCMD.csproj +++ b/FakeCMD.csproj @@ -2,7 +2,9 @@ <PropertyGroup> <OutputType>Exe</OutputType> - <TargetFramework>net5.0</TargetFramework> + <TargetFramework>net5.0-windows</TargetFramework> + <Authors>Andrew Lee</Authors> + <Copyright>(C) Copyright 2021 Andrew Lee</Copyright> </PropertyGroup> <ItemGroup> @@ -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(); } } } |
