running csc from command prompt - csc.exe file not found

  • Thread starter Thread starter Steve Richter
  • Start date Start date
S

Steve Richter

just installed .net framework 1.1 sdk on a PC at work. I would like to
run csc.exe to compile a C# source file.

In the command prompt box I navigate to the directory that holds the c#
..cs source file. then I enter the csc.exe command string to compile
the source file and the error is file CSC not found.

csc.exe is on the PC. it is in
c:\winnt\microsoft.net\framework\v1.1.4322\.

To install the .net framework SDK I downloaded the file from MS and ran
setup. The documentation says setup will set the path for the c#
compiler. But that did not happen on this PC. What should I run or do
to use the .NET SDK command line C# compiler?

thanks,

-Steve
 
set as under
PATH = %PATH%;c:\Windows\MIcrosoft.NET\Framework\v1.1xxxx;

This should solve your problems.

Regards
Vipul Patel
 
After installing the SDK, you would find the .NET 1.10 Command Prompt
shortcut in the Start/Programs menu. Selecting this would open the command
prompt with all path variables set. A normal command prompt will not have
the same.

just installed .net framework 1.1 sdk on a PC at work. I would like to
run csc.exe to compile a C# source file.

In the command prompt box I navigate to the directory that holds the c#
..cs source file. then I enter the csc.exe command string to compile
the source file and the error is file CSC not found.

csc.exe is on the PC. it is in
c:\winnt\microsoft.net\framework\v1.1.4322\.

To install the .net framework SDK I downloaded the file from MS and ran
setup. The documentation says setup will set the path for the c#
compiler. But that did not happen on this PC. What should I run or do
to use the .NET SDK command line C# compiler?

thanks,

-Steve
 
Siva said:
After installing the SDK, you would find the .NET 1.10 Command Prompt
shortcut in the Start/Programs menu. Selecting this would open the command
prompt with all path variables set. A normal command prompt will not have
the same.

I dont see that option. What I did was copy the SDKVARS.BAT file to
the directory I am working in. Then I run that file. It sets the path.

thanks,

-Steve
 
Back
Top