Visual Studio build and deploy ordering

Posted by mthornal on Stack Overflow See other posts from Stack Overflow or by mthornal
Published on 2010-05-19T12:04:16Z Indexed on 2010/05/19 12:10 UTC
Read the original article Hit count: 185

We have a VS 2010 solution that includes a few class library projects, a SQL Server 2008 database project and a Wix setup project. We are trying to get to a point where the following happens in the order specified:

  1. Build the class library projects and the database project
  2. Deploy the database project to generate the deploy .sql script
  3. Build the Wix setup project.

The reason for the desired order is that the setup project requires the deployment .sql scripts as it will use these to generate/update the database on the machine that the msi is run.

It seems that there is no way within a Visual Studio solution file to create this type of build/deploy/build order. Is this correct?

Thanks

© Stack Overflow or respective owner

Related posts about visual-studio-2010

Related posts about wix