|
-
Sep 23rd, 2005, 04:22 AM
#1
Thread Starter
Frenzied Member
Environment Variables for compiling from the Command Line
I had this link lost it when re-installing my machine
Need to know the different environment variables to set to compile C#, C++, etc applications from the command line without having to type in the path to the compiler.
-
Sep 23rd, 2005, 05:37 AM
#2
Re: Environment Variables for compiling from the Command Line
-
Sep 23rd, 2005, 06:22 AM
#3
Re: Environment Variables for compiling from the Command Line
you have to put the path to csc or what it is called again into the Path env. var.
This is how you add the path:
Goto "System Property" by right click on your "My Computer", left click on "Property"
Goto "Advanced" tab
Click on "Environment Variables..." (alt+e)
you should be able to find variable "Path" in your "System Variables". Edit variable "Path" by typing "; C:\System\..." to the end of the variable value. (where "C:\System\..." is the folder location of your csc.exe)
"OK" to close all dialogs.
Hope that helps.
- ØØ -
-
Sep 23rd, 2005, 09:04 PM
#4
Fanatic Member
Re: Environment Variables for compiling from the Command Line
Usually, csc.exe and vbc.exe is in C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 for WinXP and C:\WINNT\Microsoft.NET\Framework\v1.1.4322 for Win2k. Dunno of 9x, though. An oh, usually I do it like setting NET_FRAMEWORK name and adding it to Path as ;NET_FRAMEWORK. This way, we can just edit our NET_FRAMEWORK to point to a new version.
-
Sep 25th, 2005, 02:38 AM
#5
Thread Starter
Frenzied Member
Re: Environment Variables for compiling from the Command Line
I see if you installed VS, then you are set with the environment variables.
will check out the different settings later and if I remember post them here for future reference.....
should one be able to create a batch file to register all the environment variables? never really did batch files, but want to for all kind of miscelaneous (spelling?) task
-
Sep 25th, 2005, 02:59 AM
#6
Re: Environment Variables for compiling from the Command Line
Download the Net SDK Samples. It includes help pages. I even compiled a C# program by following the step by step instructions, when I didn't think I even had a C# compiler.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|