Compiling from the command line

  • Thread starter Sathyaish Chakravarthy
  • 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?
 
F

Frans Bouma [C# MVP]

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
 
J

Jon Skeet [C# MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top