Team Build and ClickOnce

How can I deploy an app via ClickOnce using Team Build? I read somewhere about replacing SolutionToBuild with SolutionToPublish, but that doesn't seem to do anything special. I'm using the RC.

Thanks

[216 byte] By [BBuff] at [2008-2-10]
# 1
You will need to enable clickonce deployment properties in the project files for SolutionToPublish to work. Publish these projects once through devenv and this would append the required information for clickonce deployment into the project file.
NagarajuPallaMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Build Automation...
# 2
Thanks Nagaraju! I did have the ClickOnce properties set, but I hadn't published it from the IDE to update the project file.
BBuff at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Build Automation...
# 3
Is it possible to manipulate the ClickOnce Publish and Installation paths via Team Build? For example, I'd like to have a Team Build Type for building and deploying to Dev and another Team Build Type for building and deploying to Production. I want to do this without checking out the project file, changing the Publish and Installation paths and checking the project file back in. I also do not want to have to deal with multiple project files to do this.
BBuff at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Build Automation...
# 4

Though we do not have an out of box way to do that we can do it with a simple work around.

We can overload the target AfterCompile in TFSBuild.Proj to call MSBuild Task Publish and can pass the PublishDir property as desired. Here is an example of what I tried

<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=\\kiran-test1\drops\publishme\ "

Targets="Publish" />

</Target>

Hope this helps you

regards

Kiranmayi

LakshmiKiranmayi at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Build Automation...

Visual Studio Team System

Site Classified