Giter Site home page Giter Site logo

Comments (9)

jmalarcon avatar jmalarcon commented on July 20, 2024 3

You're right. Thanks for the suggestion.

I don't know I I'll have the time soon to do something like that, but I keep the idea here for doing sometime in the future 😊

from dotnetversions.

jmalarcon avatar jmalarcon commented on July 20, 2024 1

Hi Derek:

In fact you already have this built-in in dotnet: dotnet --list-sdks

This will give you all the installed .NET SDK versions in your computer.

If you want to know all the installed .NET runtimes you can use: dotnet --list-runtimes

The whole point of creating my tool was to have something similar in the "classic" .NET framework, where knowing this information is not straightforward.

HTH

from dotnetversions.

derekantrican avatar derekantrican commented on July 20, 2024 1

Yes, I am aware of dotnet --list-runtimes but this only lists the .NET Core runtimes (now just called ".NET"). That is why I suggested to you to build a tool using your code: for .NET Framework runtimes

from dotnetversions.

jmalarcon avatar jmalarcon commented on July 20, 2024 1

Ah!, OK. So what you're proposing, if I understood it correctly, is to create a .NET version that apart from showing the same that --list-runtimes shows, it includes the old .NET framework versions too in the result. Is that correct?

It shouldn't be difficult to pull out in Windows with the Microsoft.Win32.Registry package, I guess. It should return the same as --list-runtimes + .NET framework versions in Windows, and just the same as --list-runtimes in other operating systems...

Thanks for the suggestion.

from dotnetversions.

derekantrican avatar derekantrican commented on July 20, 2024 1

Right. Per my links above, I think this would fit well as a "tool" that could be called via the dotnet CLI. Currently to see a list of installed .NET Frameworks on a computer, a user has to run something like

Powershell

Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -recurse | Get-ItemProperty -name Version,Release -EA 0 | Where { $_.PSChildName -match '^(?!S)\p{L}'} | Select PSChildName, Version, Release

https://stackoverflow.com/a/3495491/2246411

which is horrendous. Additionally, everywhere I look there seems to be caveats for 4.5+ or <=1 because of how the registry is organized differently for those versions. Someone could install your tool, but that's an additional thing to install.

However, if they happen to already have the dotnet CLI installed, I think it would be cool if they could run something like the following:

dotnet tool install list-frameworks
dotnet tool list-frameworks

Much simpler. Much cleaner.

from dotnetversions.

tisaconundrum2 avatar tisaconundrum2 commented on July 20, 2024 1

+1 to you also adding this to the CLI in the future! :)

from dotnetversions.

Burzyn1 avatar Burzyn1 commented on July 20, 2024 1

+1

from dotnetversions.

jmalarcon avatar jmalarcon commented on July 20, 2024 1

By all means, thank you. Just do a PR and I'll be happy to review and accept it. Thanks!

from dotnetversions.

bgrossman avatar bgrossman commented on July 20, 2024

You're right. Thanks for the suggestion.

I don't know I I'll have the time soon to do something like that, but I keep the idea here for doing sometime in the future 😊

I'm happy to take a stab unless you'd prefer to do it?

from dotnetversions.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.