How to find what version from commandline

  • Thread starter Thread starter web2ed
  • Start date Start date
W

web2ed

In Java one can issue 'c:\java -version' to get the version of java
installed; what is the corollary in .net?

If one does not exist, why not, and what would it take to get this
feature added to the framework?

Thanks...
-
ed
 
In Java one can issue 'c:\java -version' to get the version of java
installed; what is the corollary in .net?

..NET Framework SDK v2.0 comes with a tool called Clrver.exe that lists
the installed versions.


Mattias
 
Ed,

When an application is executed, the PE file bootstraps the CLR based upon
the configuration file for the application.

Therefore, it doesn't really make sense to work out the version of the CLR
as in the java example you've given.

If you're trying to work out from you application which version of the CLR
you're using, have a look at System.Environment.Version.ToString().

HTH,

Adam
 
The (maybe) simpliest way:

dir %SystemRoot%\Microsoft.NET\Framework\v*

*g*
(dont take this too serious!)
 
This is exactly what I needed, a way from the commandline to know
what's loaded on a particular machine. This way, I can quickly know if
I need to upgrade the .NET installation on a particular machine or not.

Thanks!

-
e
 
Back
Top