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.

1 Answer 1

2

You can use msbuild for that.

you can find an example to publish with MSBuild here

Sign up to request clarification or add additional context in comments.

2 Comments

Not what i am looking for, need it all in a batch file. I saw msdn.microsoft.com/en-us/library/b20w810z.aspx . Is it possible to run this tool from CMD
Yes. You can call the MS build from a command line and you can call it from post/pre-build too. See msdn.microsoft.com/en-GB/library/ms164311.aspx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.