Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

522
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda