.net Desktop Runtime 8 High Quality Instant
return installedVersion != null && new Version(installedVersion) >= new Version("8.0.4");
If you need to deploy this across an organization or set up a build server, use the Command Line. .net desktop runtime 8
const string runtimeKey = @"SOFTWARE\dotnet\Setup\InstalledVersions\x64\sharedfx\Microsoft.WindowsDesktop.App"; using var key = Registry.LocalMachine.OpenSubKey(runtimeKey); var installedVersion = key?.GetValue("Version") as string; return installedVersion