How do I run csc against a folder other than the current working directory?

StackOverflow https://stackoverflow.com/questions/16318327

  •  13-04-2022
  •  | 
  •  

문제

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?

도움이 되었습니까?

해결책

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)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top