I need to be able to build a ClickOnce application in TFS 2010. It needs to set the ApplicationVersion as well as the MinimumApplicationVersion. In TFS 2008, I was successful in doing the following...
<MSBuild Projects="e:\MyAppBuilds\test\trunk\src\MyApp.Automation.Workflow.UI\MyApp.Automation.Workflow.UI.csproj"
Properties=" PublishDir=\\MyServer\shared\MyCompany\Testing\MyApp\;
ApplicationVersion=$(Major).$(Minor).$(Build).$(Revision);
Configuration=$(Configuration);
Platform=$(Platform);
Install=true;
MinimumRequiredVersion=$(Major).$(Minor).$(Build).$(Revision)"
Targets="PublishOnly"
ContinueOnError="true" ToolsVersion="4.0"/>
However, I can't seem to get the MSBuild activity to publish the application properly by trying to replicate the task above in the activity. The settings I have are as follows.
CommandLineActivities = String.Format("/property:PublishDir=""{0}"" /property:Install=""true"" /property:Configuration=""{1}"" /property:Platform=""{2}"" /property:ApplicationVersion=""{3}"" /property:MinimumRequiredVersion=""{3}"" ", BuildDetail.DropLocationRoot, platformConfiguration.Configuration, platformConfiguration.Platform, VersionNumber)
Project localProject
Targets New String() {"Publish"}
Has anyone had success in doing this?