Groups | Blog | Home
all groups > dotnet sdk > november 2003 >

dotnet sdk : using csc


devmouse
11/14/2003 12:50:57 PM
I ran vcvars32.bat, but I am unable to run csc from the
command line.
Docs do not indicate how to troubleshoot.
Martha[MSFT]
11/14/2003 7:03:14 PM
What error are you getting?

Here is a word of caution from an article on MSDN:
Caution: VCVARS32.bat can vary from machine to machine. Do not replace a
missing or damaged VCVARS32.bat file with a VCVARS32.bat from another
machine. Rerun setup to replace the missing file.

Did you do that? Replace the batch file I mean?

For more information about vcvars32.bat, see the following Knowledge Base
article:
Q248802 : Vcvars32.bat Generates Out of Environment Message

Hope this helps.


[quoted text, click to view]

Lloyd Dupont
11/16/2003 6:34:16 PM
csc is in C:\Windows\Microsoft.NET\v1.1.0.4372

check it for yourself as you windows directory ould have an other name & I'm
not sure of the version number.

once you found te directory, add it to the system PATH

"devmouse" <devmouse@discussions.microsoft.com> a écrit dans le message de
news:037f01c3aaf1$01076d10$a301280a@phx.gbl...
[quoted text, click to view]

Evan Briones
11/16/2003 11:36:54 PM
The easiest way to fix this problem is to set the enviromental variable
manually.

1. Righ click My Computer or Press windowkey + break
2. Click on advanced tab
3. Click enviromental variable button
4. Under System Variables Select Path and Click Edit
5. Add SemiColon After Last Variable unless already provided
6. Type C:\Windows or WINNT\Microsoft.net\framework\ (Note: windows
or winnt is system folder your machine is using)
7. Press WindowsKey + R or go to Start then click Run
8. Type C:\Windows or WINNT\Microsoft.Net\Framework\
9. Look up the version number and copy or write it into the enviromental
variable.
10. Save and Exit

Test Compiler

1. Go to start then click Run or windowskey + r
2. Type cmd or command operating specific.
3. Type csc or vbc and now you you can command line compile from any
directory

[quoted text, click to view]

Dino Chiesa [Microsoft]
11/17/2003 3:01:44 PM
small correction
the standard location for csc.exe on a machine with .NET Fx v1.1 is:

c:\windows\Microsoft.NET\Framework\v1.1.4322\csc

[quoted text, click to view]

AddThis Social Bookmark Button