tag:help.appveyor.com,2012-11-13:/discussions/questions/28608-net-core-assembly-patching-package-versionAppVeyor: Discussion 2018-12-25T21:00:18Ztag:help.appveyor.com,2012-11-13:Comment/463455632018-10-24T21:51:44Z2018-10-24T21:51:44Z.Net Core Assembly Patching - Package version<div><p>When I set in VS2017 the <code>package-version</code> of a .NET Core and activate the nuget creation on build I get a package ending in the value setted in <code>package-version</code>.</p>
<p>This value is also setted as <code>[assembly: System.Reflection.AssemblyInformationalVersionAttribute("{package-version}")]</code>.</p>
<p>Now my question:</p>
<p>When I use for ex:</p>
<pre>
<code>dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '1.2.25'
package_version: '1.2.25.build35-develop'
assembly_version: '1.2.25'
file_version: '1.2.25'</code>
</pre>
<p>I expect to get a nuget package ending in <code>1.2.25.build35-develop.nupkg</code> and a <code>[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.2.25.build35-develop")]</code>, but I get a package ending in <code>1.2.25.nupkg</code> and a <code>[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.2.25")]</code></p>
<p>So where is the <code>package-value</code> used? Or I am using it wrong?</p></div>Rgomeztag:help.appveyor.com,2012-11-13:Comment/463455632018-10-24T22:43:48Z2018-10-24T22:43:48Z.Net Core Assembly Patching - Package version<div><p>I believe <code>package_version</code> is used for nuget packaging. Try to omit it and put the intended version under <code>version:</code> key.</p></div>Owen McDonnell