Reputation: 6903
I have set up a CI build on TFS2010 using the default workflow as defined in CIBuildWithCopyDirectoryTemplate.xaml.
It appears to be transforming web.config but I can't for the life of me figure where this has been defined. There is an AfterBuild
task in my csproj file but I don't think MSBuild uses this?
After poring through the XAML as both text file and in its workflow form has left me completely stumped and I don't yet have the time to read the Hashimi book I bought last week. I would be very grateful if someone could point me in the right direction.
Upvotes: 0
Views: 275
Reputation: 10432
Transformation of web.config is done by VS's web publishing tasks, specifically Package target. Your .csproj should have an import of Microsoft.Web.Publishing.targets in it that would define TransformXml task and few targets like [Pre|Post]TransformWebConfig that msbuild would call.
Upvotes: 1
Reputation: 14164
.csproj
files are MSBuild files. Anything you customize in the .csproj
will be picked up by MSBuild provided the conditions are met.
You can increase MSBuild logging verbosity to analyze the build internals.
Upvotes: 1
Reputation: 1501
AfterBuild generally is called after packaging is done for the project. The web.config transform will happen for your project prior to this during its packaging phase.
Upvotes: 1