Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

524
Vistas
How to best retrieve installed .NET Desktop Runtime versions?

I need to determine programmatically (c#) if a certain .NET Desktop Runtime version is installed on the system.

One option that I found was to check the version in the registry like this post suggests. However, this will only retrieve the latest version installed. With ASP.NET Core versions can for example be found in the registry here: SOFTWARE\Microsoft\ASP.NET Core\Shared Framework

System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription; Will only retrieve the version of the framework the application is running on.

The official way seems to be using the command "dotnet --list-runtimes" (documented by Microsoft here). This will require that a cmd process is started from the application.

Is there another possible way of retrieving the currently installed .NET Desktop Runtime versions?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Not a great way but you can check if .NET install folders exist in the system. For .net runtime the install folder is -

C:\program files\dotnet\shared{runtime-type}{version}\

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda