Home All Groups Group Topic Archive Search About

ClickOnce msbuild and publish.htm

Author
23 May 2006 5:43 AM
tony
It 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

Author
3 Aug 2006 9:18 PM
Josh
Tony

Were you able to also get ClickOnce to Increment the Revision number?

Will you please post your solution to this problem?

Regards,
Josh
Author
4 Aug 2006 12:20 AM
Tigger
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=&quot;${Publisher}&quot;" />
    <arg if="${ProductName!=''}"
value="/p:ProductName=&quot;${ProductName}&quot;" />
    <arg if="${CurrentVersion!=''}"
value="/p:ApplicationVersion=&quot;${CurrentVersion}.*&quot;" />
    <arg if="${PublishRevision!=''}"
value="/p:ApplicationRevision=&quot;${PublishRevision}&quot;" />
    <arg if="${OutputPath!=''}"
value="/p:OutputPath=&quot;${OutputPath}/&quot;" />
    <arg if="${ReferencePath!=''}"
value="/p:ReferencePath=&quot;${ReferencePath}&quot;" />
    <arg if="${InstallUrl!=''}"
value="/p:PublishUrl=&quot;${InstallUrl}&quot;" />
    <arg if="${InstallUrl!=''}"
value="/p:InstallUrl=&quot;${InstallUrl}&quot;" />
    <arg if="${InstallUrl!=''}"
value="/p:UpdateUrl=&quot;${InstallUrl}&quot;" />
    <arg if="${SupportUrl!=''}"
value="/p:SupportUrl=&quot;${SupportUrl}&quot;" />
    <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
Author
4 Aug 2006 12:25 AM
Tigger
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
Author
6 Aug 2006 4:23 AM
Josh
Tony,

thanks for your help. The suggestions really helped.

Regards,
Josh

AddThis Social Bookmark Button