Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I remember doing this last year for a ClickOnce project I was working on. I remember it taking me forever to figure out but here it is. What I wanted my scripts to do was to generate a different installer that pointed to our dev env and a different one for prod. Not only that but i needed it to inject the right versioning information so the existing clients would 'realize' there is a new version out there which is the whole point of clickOnce. In this script you have to replace with your own server names etc. The trick is to save the publish.htm and project.publish file and inject the new version number based on the version that is provided to you by CC.NET.</p> <p>Here is what my build script looked like:</p> <pre><code>&lt;target name="deployProd"&gt; &lt;exec program="&lt;framework_dir&gt;\msbuild.exe" commandline="&lt;project&gt;/&lt;project&gt;.csproj /property:Configuration=PublishProd /property:ApplicationVersion=${build.label}.*;PublishUrl=\\&lt;prod_location&gt;\binups$\;InstallUrl=\\&lt;prod_location&gt;\binups$\;UpdateUrl=\\&lt;prod_location&gt;\binups$\;BootstrapperComponentsUrl=\\&lt;prod_location&gt;\prereqs$\ /target:publish"/&gt; &lt;copy todir="&lt;project&gt;\bin\PublishProd\&lt;project&gt;.publish"&gt; &lt;fileset basedir="."&gt; &lt;include name="publish.htm"/&gt; &lt;/fileset&gt; &lt;filterchain&gt; &lt;replacetokens&gt; &lt;token key="CURRENT_VERSION" value="${build.label}"/&gt; &lt;/replacetokens&gt; &lt;/filterchain&gt; &lt;/copy&gt; &lt;/target&gt; </code></pre> <p>Hope this helps</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload