How to use command line to build a project

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?
 
J

Jon Skeet [C# MVP]

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
 
P

Pavel Minaev

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.
 

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