Compiling from the command line

  • Thread starter Thread starter Sathyaish Chakravarthy
  • Start date Start date
S

Sathyaish Chakravarthy

I downloaded the .NET SDK two months ago in the two setups:

(1) dotnetfx.exe - The 23 MB framework
(2) setup.exe - the 106 MB SDK

I also registered the path C:\WINNT\Microsoft.NET\Framework under the
environment variables section. Yet I am not able to run the c sharp
compiler from the command line. Although I am using Sharp Develop as
well and that works just fine, but I wish to be able to compile raw
code from the command line switches, just for pleasure. I also ran
the batch file sdkvars.bat that comes with the SDK. Am I missing
something?
 
Sathyaish said:
I downloaded the .NET SDK two months ago in the two setups:

(1) dotnetfx.exe - The 23 MB framework
(2) setup.exe - the 106 MB SDK

I also registered the path C:\WINNT\Microsoft.NET\Framework under the
environment variables section. Yet I am not able to run the c sharp
compiler from the command line. Although I am using Sharp Develop as
well and that works just fine, but I wish to be able to compile raw
code from the command line switches, just for pleasure. I also ran
the batch file sdkvars.bat that comes with the SDK. Am I missing
something?

What kind of error do you get? you should be able to use the compiler with
just the framework install, thus without the SDK.

FB
 
Sathyaish Chakravarthy <[email protected]
spam.invalid said:
I downloaded the .NET SDK two months ago in the two setups:

(1) dotnetfx.exe - The 23 MB framework
(2) setup.exe - the 106 MB SDK

I also registered the path C:\WINNT\Microsoft.NET\Framework under the
environment variables section. Yet I am not able to run the c sharp
compiler from the command line. Although I am using Sharp Develop as
well and that works just fine, but I wish to be able to compile raw
code from the command line switches, just for pleasure. I also ran
the batch file sdkvars.bat that comes with the SDK. Am I missing
something?

Usually all you need to do is put the framework directory (eg
c:\Windows\Microsoft.NET\Framework\v1.1.4322) in the path.
 
Back
Top