0

I want to do the following steps automatically:

  1. Publish a web project from my solution.
  2. Compile another project from my solution.
  3. Put both projects in a folder together.

*Both projects need to have an auto-increment version control(Same version number for both).

Any ideas? using a post-after build batch files.

omriman12
  • 1,644
  • 7
  • 25
  • 48

1 Answers1

2

You can use msbuild for that.

you can find an example to publish with MSBuild here

Community
  • 1
  • 1
Demonia
  • 332
  • 3
  • 14
  • Not what i am looking for, need it all in a batch file. I saw https://msdn.microsoft.com/en-us/library/b20w810z.aspx . Is it possible to run this tool from CMD – omriman12 Dec 02 '15 at 14:43
  • Yes. You can call the MS build from a command line and you can call it from post/pre-build too. See https://msdn.microsoft.com/en-GB/library/ms164311.aspx – Demonia Dec 02 '15 at 15:54