ClickOnce msbuild and publish.htm

  • Thread starter Thread starter tony
  • Start date Start date
T

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
 
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=&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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top