compileing C# program using vs2012 command prompt
-
how to compile a C# program using vs2012 command prompt ? i wanted to compile my program(Prog name:Demo.cs) which is in this folder(C:\Pra) when i am trying to compiling my prog like this C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC>C:\Pra>csc Demo.cs i am getting an error i.e Acess is denied HOW CAN I SOLVE THIS,Please help me. Thank you
Sandhya
-
how to compile a C# program using vs2012 command prompt ? i wanted to compile my program(Prog name:Demo.cs) which is in this folder(C:\Pra) when i am trying to compiling my prog like this C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC>C:\Pra>csc Demo.cs i am getting an error i.e Acess is denied HOW CAN I SOLVE THIS,Please help me. Thank you
Sandhya
Change directory to the target folder "C:\Pra" and run the command from there: you will either need to specify the path to CSC.EXE or use the VS command prompt tool which sets all the required paths as part of it's environment variables. Trying to run CSC from it's application folder will not work as you do not have write access to anything under Program Files by default, so when it tries to create output file,s you will get "access denied" errors.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)