QUESTION :
I’m writing .Net code that needs a priority queue and would like to use this one: https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.priorityqueue-2?view=net-6.0
Which says it needs .Net 6. Do I have that already installed?
reg query "HKLMSOFTWAREMicrosoftNet Framework SetupNDP" /s
… many screenfuls of output that seem to be talking about versions 2 and 3, but the highest versions mentioned, seem to be
HKEY_LOCAL_MACHINESOFTWAREMicrosoftNet Framework SetupNDPv4
HKEY_LOCAL_MACHINESOFTWAREMicrosoftNet Framework SetupNDPv4Client
CBS REG_DWORD 0x1
Install REG_DWORD 0x1
InstallPath REG_SZ C:WindowsMicrosoft.NETFramework64v4.0.30319
Release REG_DWORD 0x80ff4
Servicing REG_DWORD 0x0
TargetVersion REG_SZ 4.0.0
Version REG_SZ 4.8.04084
HKEY_LOCAL_MACHINESOFTWAREMicrosoftNet Framework SetupNDPv4Client1033
CBS REG_DWORD 0x1
Install REG_DWORD 0x1
Release REG_DWORD 0x80ff4
Servicing REG_DWORD 0x0
TargetVersion REG_SZ 4.0.0
Version REG_SZ 4.8.04084
HKEY_LOCAL_MACHINESOFTWAREMicrosoftNet Framework SetupNDPv4Full
CBS REG_DWORD 0x1
Install REG_DWORD 0x1
InstallPath REG_SZ C:WindowsMicrosoft.NETFramework64v4.0.30319
Release REG_DWORD 0x80ff4
Servicing REG_DWORD 0x0
TargetVersion REG_SZ 4.0.0
Version REG_SZ 4.8.04084
HKEY_LOCAL_MACHINESOFTWAREMicrosoftNet Framework SetupNDPv4Full1033
CBS REG_DWORD 0x1
Install REG_DWORD 0x1
Release REG_DWORD 0x80ff4
Servicing REG_DWORD 0x0
TargetVersion REG_SZ 4.0.0
Version REG_SZ 4.8.04084
HKEY_LOCAL_MACHINESOFTWAREMicrosoftNet Framework SetupNDPv4.0
(Default) REG_SZ deprecated
HKEY_LOCAL_MACHINESOFTWAREMicrosoftNet Framework SetupNDPv4.0Client
Install REG_DWORD 0x1
Version REG_SZ 4.0.0.0
… 4.x. And sure enough, when I try to compile code using PriorityQueue, the compiler will have none of it. Okay, Google leads me to what looks like an installer for .Net 6 Desktop Runtime: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-6.0.2-windows-x64-installer
Download, run, click through the various prompts, it claims successful completion.
And… Nothing has changed. Compiler gives the same error messages, and the attempt to check what versions are installed, gives exactly the same output as before.
What am I missing?
ANSWER :
How to install .Net 6 on Windows 10?
You already did.
What am I missing?
The framework died at 4.8. What you want is now called .NET. .NET Core has jumped versions – going from 3.x to 5.x and then 6 and is now known as .NET
Press Win + R
Type cmd
On the command prompt, type dotnet --version
(if you’ve installed the SDK)
ComputerHKEY_LOCAL_MACHINESOFTWAREWOW6432NodedotnetSetupInstalledVersions
(if you love regedit)