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] "web2ed@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
>
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] > 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
>
>
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