This is a multi-part message in MIME format.

------=_NextPart_000_0031_01C351E0.06C42D70
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Hi,

Does anybody know how to do this? (excluding looking at the folder =
structure under %windir%)

Cheers
Joubert
------=_NextPart_000_0031_01C351E0.06C42D70
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable

=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Does anybody know how to do this? =
(excluding=20
looking at the folder structure under %windir%)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Cheers</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Joubert</FONT></DIV></BODY></HTML>

------=_NextPart_000_0031_01C351E0.06C42D70--

Re: .NET Framework version - determine on thecommand line by Jon

Jon
Thu Jul 24 05:53:59 CDT 2003

Joubert <j@j.j> wrote:
> Does anybody know how to do this? (excluding looking at the
> folder structure under %windir%)

Compile and run this console app:

using System;

public class Test
{
static void Main()
{
Console.WriteLine (Environment.Version);
}
}

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too

Re: .NET Framework version - determine on thecommand line by Joubert

Joubert
Thu Jul 24 05:58:06 CDT 2003

Perhaps I should have been more explicit.

I would like to use something which is guaranteed to be on the user's
computer (e.g. "c:\ver <return>").

If there is no known command line exe that is installed with the Framework,
can I see it elsewhere in the shell? E.g. My Computer\Properties or in
Explorer Help\About ??

Cheers
Joubert

"Jon Skeet" <skeet@pobox.com> wrote in message
news:MPG.1989cb2343cd6fd898a1d9@news.microsoft.com...
> Joubert <j@j.j> wrote:
> > Does anybody know how to do this? (excluding looking at the
> > folder structure under %windir%)
>
> Compile and run this console app:
>
> using System;
>
> public class Test
> {
> static void Main()
> {
> Console.WriteLine (Environment.Version);
> }
> }
>
> --
> Jon Skeet - <skeet@pobox.com>
> http://www.pobox.com/~skeet/
> If replying to the group, please do not mail me too



Re: .NET Framework version - determine on thecommand line by Jon

Jon
Thu Jul 24 07:00:23 CDT 2003

BenoitM <Benoit_Mich@hotmail.Com> wrote:
> perhaps it won't help, but if you do 'AL /?' it display the version of the
> framework for which it's built ...

Similarly just running csc with no arguments will give:

Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.

fatal error CS2008: No inputs specified

Of course, csc isn't on the path by default...

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too

Re: .NET Framework version - determine on thecommand line by Joubert

Joubert
Thu Jul 24 08:00:02 CDT 2003

plus it doesn't come with the .NET Framework distributable (correct me if
I'm wrong), so it is still not a satisfactory solution.. :-(


"Jon Skeet" <skeet@pobox.com> wrote in message
news:MPG.1989dab55caf0f5898a1db@news.microsoft.com...
> BenoitM <Benoit_Mich@hotmail.Com> wrote:
> > perhaps it won't help, but if you do 'AL /?' it display the version of
the
> > framework for which it's built ...
>
> Similarly just running csc with no arguments will give:
>
> Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
> for Microsoft (R) .NET Framework version 1.1.4322
> Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
>
> fatal error CS2008: No inputs specified
>
> Of course, csc isn't on the path by default...
>
> --
> Jon Skeet - <skeet@pobox.com>
> http://www.pobox.com/~skeet/
> If replying to the group, please do not mail me too



Re: .NET Framework version - determine on thecommand line by BenoitM

BenoitM
Thu Jul 24 08:18:20 CDT 2003

not verified, but i think that csc & al are installed with the redist,
because they are needed for asp.net dynamic compilation ...
anyway i looked at the dotnetfx.exe and i'm sure that ngen.exe is installed
on the target machine, so you can use 'ngen /?' ...

"Joubert" <j@j.j> wrote in message
news:uXQ5WQeUDHA.2248@TK2MSFTNGP12.phx.gbl...
> plus it doesn't come with the .NET Framework distributable (correct me if
> I'm wrong), so it is still not a satisfactory solution.. :-(
>
>
> "Jon Skeet" <skeet@pobox.com> wrote in message
> news:MPG.1989dab55caf0f5898a1db@news.microsoft.com...
> > BenoitM <Benoit_Mich@hotmail.Com> wrote:
> > > perhaps it won't help, but if you do 'AL /?' it display the version of
> the
> > > framework for which it's built ...
> >
> > Similarly just running csc with no arguments will give:
> >
> > Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
> > for Microsoft (R) .NET Framework version 1.1.4322
> > Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
> >
> > fatal error CS2008: No inputs specified
> >
> > Of course, csc isn't on the path by default...
> >
> > --
> > Jon Skeet - <skeet@pobox.com>
> > http://www.pobox.com/~skeet/
> > If replying to the group, please do not mail me too
>
>



Re: .NET Framework version - determine on thecommand line by Jon

Jon
Thu Jul 24 08:35:08 CDT 2003

Joubert <j@j.j> wrote:
> plus it doesn't come with the .NET Framework distributable (correct me if
> I'm wrong), so it is still not a satisfactory solution.. :-(

They definitely are in the redistributable - the SDK doesn't install on
Windows 98, so the redistributable is all I've got on my W98 box :)

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too

Re: .NET Framework version - determine on thecommand line by Joubert

Joubert
Thu Jul 24 08:33:16 CDT 2003

Great. That helps. It is just a pity ngen is not in the path. But at least
it is a solution.

Cheers



"BenoitM" <Benoit_Mich@hotmail.Com> wrote in message
news:Orcw6VeUDHA.2368@TK2MSFTNGP09.phx.gbl...
> not verified, but i think that csc & al are installed with the redist,
> because they are needed for asp.net dynamic compilation ...
> anyway i looked at the dotnetfx.exe and i'm sure that ngen.exe is
installed
> on the target machine, so you can use 'ngen /?' ...
>
> "Joubert" <j@j.j> wrote in message
> news:uXQ5WQeUDHA.2248@TK2MSFTNGP12.phx.gbl...
> > plus it doesn't come with the .NET Framework distributable (correct me
if
> > I'm wrong), so it is still not a satisfactory solution.. :-(
> >
> >
> > "Jon Skeet" <skeet@pobox.com> wrote in message
> > news:MPG.1989dab55caf0f5898a1db@news.microsoft.com...
> > > BenoitM <Benoit_Mich@hotmail.Com> wrote:
> > > > perhaps it won't help, but if you do 'AL /?' it display the version
of
> > the
> > > > framework for which it's built ...
> > >
> > > Similarly just running csc with no arguments will give:
> > >
> > > Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
> > > for Microsoft (R) .NET Framework version 1.1.4322
> > > Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
> > >
> > > fatal error CS2008: No inputs specified
> > >
> > > Of course, csc isn't on the path by default...
> > >
> > > --
> > > Jon Skeet - <skeet@pobox.com>
> > > http://www.pobox.com/~skeet/
> > > If replying to the group, please do not mail me too
> >
> >
>
>