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
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
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