Home All Groups Group Topic Archive Search About

How to find what version from commandline

Author
22 Feb 2006 5:11 AM
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

Author
22 Feb 2006 6:21 AM
Mattias Sjögren
>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

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Author
23 Feb 2006 1:06 AM
web2ed
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
Author
22 Feb 2006 6:30 AM
Adam May
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


--
Adam May
Sydney, Australia
MCSD.Net


Show quote
"web***@yahoo.com" wrote:

> 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
>
>
Author
22 Feb 2006 3:27 PM
Markus Eßmayr
The (maybe) simpliest way:

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

*g*
(dont take this too serious!)

<web***@yahoo.com> schrieb im Newsbeitrag
Show quote
news:1140585100.902563.158020@g44g2000cwa.googlegroups.com...
> 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
>
>

AddThis Social Bookmark Button