aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FakeCMD.csproj4
-rw-r--r--Program.cs4
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>
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();
}
}
}