Team Build and ClickOnce
Software Development, Team System September 13th, 2008
The other day I got a question: How can I deploy an app via ClickOnce using Team Build?
There is not out of box way to do that, but we can do it with a simple workaround:
we should overload the target AfterCompile in TFSBuild.Proj to call MSBuild Task Publish and can pass the PublishDir property:
<Target Name="AfterCompile"> <MSBuild Condition=" '@(SolutionToBuild)'!='' " Projects="@(SolutionToBuild)" Properties="Configuration=%(ConfigurationToBuild.FlavorToBuild); Platform=%(ConfigurationToBuild.PlatformToBuild); SkipInvalidConfigurations=true; VCBuildOverride=$(MSBuildProjectDirectory)\TFSBuild.vsprops; FxCopDir=$(FxCopDir);OutDir=$(OutDir); PublishDir=$(OutDir); ReferencePath=$(ReferencePath); TeamBuildConstants=$(TeamBuildConstants); $(CodeAnalysisOption);PublishDir=\\qa1Srv\drops\publishedVers\ " Targets="Publish" /> </Target>
Similar Posts:
- How To: Build Non-MSBuild Projects with MSBuild
- How To Deploy Data Dude Project Changes using Team Foundation Build
- Automatically Compare Data and Schema Using MSBuild and Data Dude
- Custom Build Number In Team Build
- Building .NET 3.0 projects from Team Foundation Build 2005 not supported
Tags: MSBuild, Team Build
About


[...] http://vstskb.net/blog/2008/09/team-build-and-clickonce/ Filed under: MSBuild, Team [...]
This comment originally written by:
The other day I got a question: How can I deploy an app via ClickOnce using Team Build? There is not out of box way to do that, but we can do it with a simple workaround: we should overload the target AfterCompile in TFSBuild.Proj to call MSBuild Task
This comment originally written by:Team System News
Eugene Zakehareyev on Work Item customization tidbits: customization process (part 10 of x) and A Rule…