Comments (9)
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.
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.
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.
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.
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.
+1 to you also adding this to the CLI in the future! :)
from dotnetversions.
+1
from dotnetversions.
By all means, thank you. Just do a PR and I'll be happy to review and accept it. Thanks!
from dotnetversions.
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)
- Support running on .NET Framework 4 and later HOT 4
- VirusTotal has 3 vendors flagging this as malicious HOT 3
- Doesnt automatically exit. HOT 3
- How to run the tool ? Updating of the Readme file HOT 2
- Version display HOT 3
- Missing one thing HOT 2
- Support for .net core runtime version HOT 1
- .NET Framework compatibility HOT 3
- Providing an .exe file / more details on how to run the project HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotnetversions.