Groups | Blog | Home
all groups > dotnet framework > february 2006 >

dotnet framework : How to find what version from commandline


web2ed NO[at]SPAM yahoo.com
2/21/2006 9:11:40 PM
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
Adam May
2/21/2006 10:30:27 PM
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


[quoted text, click to view]
Mattias Sjögren
2/22/2006 12:00:00 AM
[quoted text, click to view]

..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
Markus Eßmayr
2/22/2006 4:27:18 PM
The (maybe) simpliest way:

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

*g*
(dont take this too serious!)

<web2ed@yahoo.com> schrieb im Newsbeitrag
news:1140585100.902563.158020@g44g2000cwa.googlegroups.com...
[quoted text, click to view]

web2ed NO[at]SPAM yahoo.com
2/22/2006 5:06:21 PM
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
AddThis Social Bookmark Button