tag:help.appveyor.com,2012-11-13:/discussions/questions/1210-how-does-the-package-nuget-projects-feature-workAppVeyor: Discussion 2018-08-25T02:09:53Ztag:help.appveyor.com,2012-11-13:Comment/366151012015-04-18T20:31:48Z2016-11-14T21:16:37ZHow does the 'Package NuGet projects' feature work?<div><p>Yeah, there are some assumptions/limitations with automatic
NuGet packaging:</p>
<ol>
<li>It works with <code>.sln</code> builds only when AppVeyor is
able to list projects and their project folders.<br></li>
<li><code>.nuspec</code> file must have the same name as
<code>.*proj</code> file and should be placed next to project
file.</li>
</ol></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/366151012015-04-19T09:25:40Z2016-11-14T21:16:37ZHow does the 'Package NuGet projects' feature work?<div><p>So automatic packaging does actually require a solution file
(sln)?</p></div>steven.liekenstag:help.appveyor.com,2012-11-13:Comment/366151012015-04-19T13:24:37Z2016-11-14T21:16:37ZHow does the 'Package NuGet projects' feature work?<div><p>Correct.</p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/366151012016-11-12T13:05:53Z2016-11-14T21:16:37ZHow does the 'Package NuGet projects' feature work?<div><p>Hi Fidor,</p>
<p>currently I have the problem that no nuget package is packed in
my open source project: <a href="https://ci.appveyor.com/project/SteffenWenz/n26">https://ci.appveyor.com/project/SteffenWenz/n26</a></p>
<p>Regards,<br>
Steffen</p></div>Steffen Wenztag:help.appveyor.com,2012-11-13:Comment/366151012016-11-13T10:36:38Z2016-11-14T21:16:37ZHow does the 'Package NuGet projects' feature work?<div><p>Hi Steffen,</p>
<p>Please send us your appveyor.yml (use Settings > Export YAML
if you use UI configuration).</p>
<p>Thanks!<br>
--ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/366151012016-11-13T11:54:54Z2016-11-14T21:16:37ZHow does the 'Package NuGet projects' feature work?<p><br></p>
<blockquote type="cite">Ilya Finkelshteyn
<tender2+d79b28dddf@tenderapp.com> hat am 13. November 2016
um 11:36 geschrieben:<br>
<br>
<table width="100%" class="mce-item-table">
<tr>
<td>
<p>// Please reply above this line<br>
==================================================</p>
<p><strong>From</strong>: Ilya Finkelshteyn (Support staff)</p>
<div>
<p>Hi Steffen,</p>
<p>Please send us your appveyor.yml (use Settings > Export YAML
if you use UI configuration).</p>
<p>Thanks!<br>
--ilya.</p>
</div>
<div>
<p>On Sat, Nov 12 at 05:05 AM PST, Steffen Wenz wrote:</p>
<blockquote>
<div>
<p>Hi Fidor,</p>
<p>currently I have the problem that no nuget package is packed in
my open source project: <a href=
"https://ci.appveyor.com/project/SteffenWenz/n26">https://ci.appveyor.com/project/SteffenWenz/n26</a></p>
<p>Regards,<br>
Steffen</p>
</div>
</blockquote>
</div>
</td>
</tr>
<tr>
<td>
<p>Having trouble reading this? View this discussion online:
<a href=
"http://help.appveyor.com/discussions/questions/1210-how-does-the-package-nuget-projects-feature-work">
How does the 'Package NuGet projects' feature work?</a>.</p>
<p>Reply with #ignore to stop receiving notifications for this
discussion.</p>
</td>
</tr>
</table>
</blockquote>Steffen Wenztag:help.appveyor.com,2012-11-13:Comment/366151012016-11-15T07:10:48Z2016-11-15T07:10:48ZHow does the 'Package NuGet projects' feature work?<div><p>Hi Steffen,</p>
<p>Sorry for confusion. Currently built-in nuget packaging works
only with classic solutions. For .NET Core please set the
following:</p>
<pre>
<code>build:
verbosity: minimal
after_build:
- ps: dotnet pack src\N26 -o .\Artifacts
artifacts:
- path: .\Artifacts\*</code>
</pre>
<p>Also if you want to deal conditionally with pre-release versions
you may change <code>after_build</code> part to something like
this:</p>
<pre>
<code>- ps: if ($env:APPVEYOR_REPO_TAG -eq $true) {dotnet pack src\N26 -o .\Artifacts} else {dotnet pack src\N26 -o .\Artifacts --version-suffix=$env:APPVEYOR_BUILD_NUMBER}</code>
</pre>
<p>Thank you,<br>
Ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/366151012016-11-19T21:59:06Z2016-11-19T21:59:07ZHow does the 'Package NuGet projects' feature work?<div><p>Hi Ilya,</p>
<p>thanks for the help, the packing is now working. Could you also
help me with using the AssemblyInfo patching Feature with a .NET
Core Projects?</p>
<p>Thanks,</p>
<p>Steffen</p></div>Steffen Wenztag:help.appveyor.com,2012-11-13:Comment/366151012016-11-20T04:13:38Z2016-11-20T04:13:38ZHow does the 'Package NuGet projects' feature work?<div><p>Sure :) Common problem is
<code>AssemblyInformationalVersion</code> tag does not exist
<code>AssemblyInfo.cs</code> file, therefore AppVeyor has nothing
to patch, and then <code>version</code> in <code>nuspec</code> file
has no value to substitute with. Please check this potential
problem first.</p>
<p>--ilya.</p></div>Ilya Finkelshteyn