Petr Pokorný
Petr Pokorný

Reputation: 21

TFS server build vs. local visual studio build differences

Before we used TFS, we were building our packages locally using visual studio. There was a lot of projects organized into solutions. When we wanted to build the package, we simply located the ccproj project, right click on it and hit “package”.

There is couple of specific in our solution:

Everything worked smoothly when building in VS 2012 locally.

When migrated to TFS we quickly learned that we won’t be able to replicate the same build process on build server

I have two questions:

  1. Is it possible to configure TFS build server to have exact same behavior as the local build in VS2012?
  2. Is there any official solution for building azure packages with multiple web sites and virtual applications in a single web role?

Upvotes: 2

Views: 959

Answers (1)

mcollier
mcollier

Reputation: 3719

I haven't yet tried this on a TFS build server, but the approach outlined in my blog at http://michaelcollier.wordpress.com/2013/01/14/multiple-sites-in-a-web-role/ has been working well. The "trick" is basically to modify the .ccproj file to tap into the CoreBuildDependsOn target, adding logic that will execute MSBuild against the secondary sites. This should also allow config transforms to work.

Upvotes: 0

Related Questions