|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to find what version from commandlineIn 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 ..NET Framework SDK v2.0 comes with a tool called Clrver.exe that lists>installed; what is the corollary in .net? 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. 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 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 -- Show quoteAdam May Sydney, Australia MCSD.Net "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 > > 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 > > |
|||||||||||||||||||||||