Is there a way to run csc against a folder other than the current working directory, or is the best practice to copy .cs files to the current working directory and then run csc?
Asked
Active
Viewed 462 times
3
-
yes you can................ – Trikaldarshiii May 01 '13 at 12:49
-
give the full path and do not forget to set your csc to environmental variable – Trikaldarshiii May 01 '13 at 12:50
-
have you tried simply specifying the path the the file instead of just filename? – CodesInChaos May 01 '13 at 12:56
1 Answers
1
Yes, you can use full path names for your files but , IMO Easiest thing to do would be to open the visual studio cmd prompt (that way the correct version of csc.exe is accessible via path) and navigate to the location of your files and build from there. Or even better use msbuild if you need to provide complex project structure information or go a step further and use a task builder like Albacore Build)

Terrance
- 11,764
- 4
- 54
- 80