|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ClickOnce msbuild and publish.htmIt there any way to generate the publish.htm file using msbuild?
I have setup an automatic publisher using msbuild and mage and the last problem to solve is the generation of the publish.htm file. Tony Tony
Were you able to also get ClickOnce to Increment the Revision number? Will you please post your solution to this problem? Regards, Josh I use nant to release and publish my applications and it manualy set
the revision number when compiling. Heres a snippet... <exec program="${msBuild.exe}"> <arg value="${ProjectFile}" /> <arg value="/target:rebuild" /> <arg value="/p:Configuration=${SolutionConfiguration}" /> <arg value="/p:PublisherName="${Publisher}"" /> <arg if="${ProductName!=''}" value="/p:ProductName="${ProductName}"" /> <arg if="${CurrentVersion!=''}" value="/p:ApplicationVersion="${CurrentVersion}.*"" /> <arg if="${PublishRevision!=''}" value="/p:ApplicationRevision="${PublishRevision}"" /> <arg if="${OutputPath!=''}" value="/p:OutputPath="${OutputPath}/"" /> <arg if="${ReferencePath!=''}" value="/p:ReferencePath="${ReferencePath}"" /> <arg if="${InstallUrl!=''}" value="/p:PublishUrl="${InstallUrl}"" /> <arg if="${InstallUrl!=''}" value="/p:InstallUrl="${InstallUrl}"" /> <arg if="${InstallUrl!=''}" value="/p:UpdateUrl="${InstallUrl}"" /> <arg if="${SupportUrl!=''}" value="/p:SupportUrl="${SupportUrl}"" /> <arg value="/verbosity:normal" /> </exec> Most of the arguments are so that it generates the correct publish data including setting the version and revision numbers. I get the version number from an xml configuration file I keep with the nant script. The version is automatically incremented each week and the revision each build. Josh wrote: Show quote > Tony > > Were you able to also get ClickOnce to Increment the Revision number? > > Will you please post your solution to this problem? > > Regards, > Josh Oh,
I solved the missing publish.htm problem by using nant to re-create the file using the microsoft generated one as a template. Tigger |
|||||||||||||||||||||||