Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm not familiar with Win 8 apps, but setting the assembly version should be the same as for normal .Net I guess. We set the versions every time in our build, while the Revision is the same as the actual changeset used for build. That way it will be increased automatically if some one checked in anything in the Project Collection. First step is to get the changeset number and set the other versions:</p> <pre><code>&lt;PropertyGroup&gt; &lt;incMajorVersion&gt;6&lt;/incMajorVersion&gt; &lt;incMinorVersion&gt;1&lt;/incMinorVersion&gt; &lt;incBuildNumber&gt;3&lt;/incBuildNumber&gt; &lt;incRevision&gt;$(SourceGetVersion.Replace("C",""))&lt;/incRevision&gt; &lt;/PropertyGroup&gt; </code></pre> <p>Next step is to find the assembly files and change the versions to the specified ones. To do this a MSBuild task is used from Extensionpack (<a href="http://www.msbuildextensionpack.com/help/4.0.5.0/Index.html" rel="nofollow">http://www.msbuildextensionpack.com/help/4.0.5.0/Index.html</a>). Now we have to import the task file, find the assembly files and change them. This needs to be done before anything else happens, so we override the AfterGet target:</p> <pre><code>&lt;Import Project="C:\Program Files (x86)\MSBuild\ExtensionPack\4.0\MSBuild.ExtensionPack.tasks"/&gt; &lt;Target Name="AfterGet" DependsOnTargets="$(AfterGetDependsOn)"&gt; &lt;ItemGroup&gt; &lt;AssemblyInfoFiles Include="$(BuildDirectory)\**\AssemblyInfo.cs"/&gt; &lt;/ItemGroup&gt; &lt;MSBuild.ExtensionPack.Framework.AssemblyInfo AssemblyInfoFiles="@(AssemblyInfoFiles)" AssemblyMajorVersion="$(incMajorVersion)" AssemblyMinorVersion="$(incMinorVersion)" AssemblyBuildNumber="$(incBuildNumber)" AssemblyRevision="$(incRevision)" AssemblyFileMajorVersion="$(incMajorVersion)" AssemblyFileMinorVersion="$(incMinorVersion)" AssemblyFileBuildNumber="$(incBuildNumber)" AssemblyFileRevision="$(incRevision)" /&gt; &lt;/Target&gt; </code></pre> <p>Now the output files should have the version number you defined.</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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