How to write a batch to compile .net projects?

  • Thread starter Thread starter ccc
  • Start date Start date
C

ccc

Good evening.

I was wonder how to write a batch file making no assumption if visual
studio is installed manually on the target system. I.e. it is likely
to map the visual studio.net file structure on the target system,
hence the question of how to compile it due to environment variables.

Currently, I keep having th error of "missing one or more components,
please reinstall".

Here is partial batch file I have been working on:

PATH=%TOOLS_DIR%\7.0\bin;%TOOLS_DIR%\7.0\common7\ide\dev

Thanks.

Jiac
 
The command line compilers csc.exe and vbc.exe are in the Microsoft.Net
folder in your Windows folder and not in the Program Files folder. So, as
long as the .NET Framework is installed on the machine, you can use that
location.
 
Back
Top