Estoy escribiendo código .Net que necesita una cola de prioridad y me gustaría usar esta:https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.priorityqueue-2?view=net-6.0
Lo que dice que necesita .Net 6. ¿Ya lo tengo instalado?
reg query "HKLM\SOFTWARE\Microsoft\Net Framework Setup\NDP" /s
... muchas pantallas llenas de resultados que parecen estar hablando de las versiones 2 y 3, pero las versiones más altas mencionadas parecen ser
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Client
CBS REG_DWORD 0x1
Install REG_DWORD 0x1
InstallPath REG_SZ C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
Release REG_DWORD 0x80ff4
Servicing REG_DWORD 0x0
TargetVersion REG_SZ 4.0.0
Version REG_SZ 4.8.04084
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Client\1033
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_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full
CBS REG_DWORD 0x1
Install REG_DWORD 0x1
InstallPath REG_SZ C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
Release REG_DWORD 0x80ff4
Servicing REG_DWORD 0x0
TargetVersion REG_SZ 4.0.0
Version REG_SZ 4.8.04084
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full\1033
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_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4.0
(Default) REG_SZ deprecated
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4.0\Client
Install REG_DWORD 0x1
Version REG_SZ 4.0.0.0
... 4.x. Y efectivamente, cuando intento compilar código usando PriorityQueue, el compilador no tendrá nada de eso. Bien, Google me lleva a lo que parece un instalador para .Net 6 Desktop Runtime:https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-6.0.2-windows-x64-installer
Descargue, ejecute, haga clic en las distintas indicaciones y afirma que se completó correctamente.
Y... Nada ha cambiado. El compilador muestra los mismos mensajes de error y el intento de verificar qué versiones están instaladas arroja exactamente el mismo resultado que antes.
¿Qué me estoy perdiendo?
Respuesta1
¿Cómo instalar .Net 6 en Windows 10?
Ya lo hiciste.
¿Qué me estoy perdiendo?
El marco murió en 4,8. Lo que quieres ahora se llama .NET. .NET Core ha saltado de versión: pasó de 3.x a 5.x y luego a 6 y ahora se conoce como .NET
Presione Win+R
Tipocmd
En el símbolo del sistema, escribadotnet --version
(si ha instalado el SDK)
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions
(si te encanta regedit)