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

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
 
V

Vipul Patel

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

This should solve your problems.

Regards
Vipul Patel
 
S

Siva M

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
 
S

Steve Richter

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
 

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