This is a little bizarre but I really hope someone can help.
My client has two Asp.Net MVC websites, SiteA and SiteB. Site B is essentially a subset of the functionality in Site A and has a separate team developing it. In essence when a developer working on Site B needs to run the website he first needs to publish site A, and then publish site B over the top.
This can all be done with manual publishes through visual studio but is far too cumbersome and long winded given the volume of code changes at my client. Besides which developers working on SiteA are not able to access the code in SiteB, nor do they care about it.
I've found this post which notes how to achieve a publish of SiteA and Site B as part of a Publish.proj file.
http://sedodream.com/2013/09/21/HowToExtendTheWebPublishProcessWithoutModifyingProjectContents.aspx
Essentially I want to achieve the same effect in Visual Studio when I build the sln which contains site B, with the caveat that developers on SiteA (different sln - see below) don't require a publish, but developers on SiteB do require a publish.
Worth noting that we have two .sln files depending on which team your in. If you develop on SiteA, then you see a sln file which doesn't have any references to SiteB. And if you develop on SiteB there's a sln which has both SiteA and SiteB in. Both sln files reference SiteA from the same path, and therefore changes to the proj file for siteA affect both teams.
I doubt this make sense. It would be great if on compile of site B I could trigger a compile and publish of SiteA, then a publish of SiteB.
Are there any MSBuild tasks that I can use in the csproj file of SiteB to trigger a build an publish of SiteA first?
Any thoughts help would be great.
Tim