tag:help.appveyor.com,2012-11-13:/discussions/questions/249-how-to-patch-the-applicationversion-and-applicationrevision-in-my-main-projectAppVeyor: Discussion 2018-10-19T08:16:32Ztag:help.appveyor.com,2012-11-13:Comment/327031312014-04-25T05:47:06Z2014-04-25T05:47:06ZHow to patch the ApplicationVersion and ApplicationRevision in my main project<div><p>In my main project in my solution I have</p>
<pre>
<code> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{1C93D62E-70EE-4248-90AA-A394795061B2}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>WeinGartner.WeinCad</RootNamespace>
<AssemblyName>WeinGartner.WeinCad</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<RestorePackages>true</RestorePackages>
<IsWebBootstrapper>false</IsWebBootstrapper>
<PublishUrl>O:\Phelan\WeinCad\Releases\</PublishUrl>
<Install>true</Install>
<InstallFrom>Unc</InstallFrom>
<UpdateEnabled>true</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<InstallUrl>\\wgfilesrv\Allgemein\Phelan\WeinCad\Releases\</InstallUrl>
<ApplicationRevision>4</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup></code>
</pre>
<p>with the key fields being <code>ApplicationRevision</code> and
<code>ApplicationVersion</code>. I would like to patch these so
that my ClickOnce build, generated with <code>msbuild
/t:publish</code> generates an installer with the correct
version.</p></div>bradphelantag:help.appveyor.com,2012-11-13:Comment/327031312014-04-25T05:50:08Z2014-04-25T05:50:08ZHow to patch the ApplicationVersion and ApplicationRevision in my main project<div><p>I can override these on the command like. Forget about the
question.</p>
<p><a href=
"http://msdn.microsoft.com/en-us/library/ms165431.aspx">http://msdn.microsoft.com/en-us/library/ms165431.aspx</a></p></div>bradphelan