Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

516
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!