Comments (2)
Mmmm, that would be hard to do.
The folders are easily found because they are under C:\Windows\Microsoft.NET\
. However there is one folder for .NET 32 bits (\Framework
) and another for .NET 64 bits (\Framework64
). Inside those there are folders for each "base" .NET framework version. For example, these are the ones in my computer:
There's not a direct relationship between versions and all the folders.
For example, if you run a .NET 3.5 app 32 bits and get the framework folder using System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()
you'll get the 2.0 v2.0.50727
folder, not the v3.5
folder, because, in fact, the base framework for 3.5 .NET is 2.0. And this would change the path if your app is running for 64 bits.
The same thing happens with .NET 4.x: the folder is v4.0.30319
in any case, but there are two possible paths depending on 32 or 64 bits.
So, to show that information in the console, at least I'll need to duplicate the information. And anyway it's extremely easy to find the folder for the .NET version you are interested in.
HTH
from dotnetversions.
Awesome, I never knew nor could find anything helpful in learning so...thank you very much for the detailed explanation, truly appreciate you!
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
- 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
- Make into a `dotnet` tool? HOT 9
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.