How to write a batch to compile .net projects?

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
 
S

Steven Wood

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top