How to use command line to build a project

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I have five projects in a solution.
There are 3 projects I must build in sequence.
I used to right click each project and select build.
It is tedious jobs.
Can I write a bat file to finish to build steps?
How can I do it?
 
I have five projects in a solution.
There are 3 projects I must build in sequence.
I used to right click each project and select build.
It is tedious jobs.
Can I write a bat file to finish to build steps?
How can I do it?

The project files are actually msbuild files. You can run msbuild
three times to build the projects. See the msbuild documentation for
more information if it's not obvious through a bit of experimentation.

Jon
 
ad said:
I have five projects in a solution.
There are 3 projects I must build in sequence.
I used to right click each project and select build.
It is tedious jobs.
Can I write a bat file to finish to build steps?
How can I do it?

Run msbuild.exe from directory with the .sln file.
 
Back
Top