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.
Printable View
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.
Moved from CodeBank.
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.
- ØØ -
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.
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
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.