tag:help.appveyor.com,2012-11-13:/discussions/questions/49442-snupkg-symbols-are-not-uploaded-to-nugetorgAppVeyor: Discussion 2020-08-19T20:32:17Ztag:help.appveyor.com,2012-11-13:Comment/485346872020-08-10T19:16:32Z2020-08-10T19:16:32Zsnupkg symbols are not uploaded to nuget.org<div><p>Modify <code>appveyor.yml</code> as following:</p>
<pre>
<code>artifacts:
- path: '**\SmtpServerStub.*nupkg'
type: NuGetPackage</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/485346872020-08-19T17:54:23Z2020-08-19T17:54:23Zsnupkg symbols are not uploaded to nuget.org<div><p>Hi Feodor,</p>
<p>Thanks for your help!<br>
I've implemented suggested changes to appveyor.yml</p>
<p>That still successfully builds but symbols are not published to nuget.org.<br>
I've found this article <a href="https://docs.microsoft.com/en-us/nuget/create-packages/symbol-packages-snupkg">https://docs.microsoft.com/en-us/nuget/create-packages/symbol-packa...</a></p>
<p>And it hase note in it:</p>
<pre>
<code>If the symbol package isn't published, check that you've configured the NuGet.org source as https://api.nuget.org/v3/index.json. Symbol package publishing is only supported by the NuGet V3 API.</code>
</pre>
<p>In build log I see:<br>
<code>Deploying using NuGet provider Publishing SmtpServerStub.1.1.166-I-3.nupkg to https://www.nuget.org/api/v2/package...OK Total packages published: 1 Build success</code></p>
<p>looks like it publishes to v2 API version. Should I somehow explicitly override target URL to target v3 ?</p>
<p>Great thanks,<br>
Valentin</p></div>valentin.kostiuktag:help.appveyor.com,2012-11-13:Comment/485346872020-08-19T18:12:46Z2020-08-19T18:12:46Zsnupkg symbols are not uploaded to nuget.org<div><p>Hi Valentin,</p>
<p>Could you drop me a screenshot of build "Artifacts" page please?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/485346872020-08-19T18:22:34Z2020-08-19T18:22:34Zsnupkg symbols are not uploaded to nuget.org<div><p>Yes, sure.</p>
<p>Also added console and appveyor.yml screens</p>
<p>Thank you for looking to this!</p></div>valentin.kostiuktag:help.appveyor.com,2012-11-13:Comment/485346872020-08-19T18:26:01Z2020-08-19T18:26:01Zsnupkg symbols are not uploaded to nuget.org<div><p>I see, thanks.</p>
<p>Remove <code>skip_symbols: true</code> from deployment configuration.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/485346872020-08-19T18:31:00Z2020-08-19T18:31:00Zsnupkg symbols are not uploaded to nuget.org<div><p>Did that, now receive 500 error in log<br>
<code>Deploying using NuGet provider Publishing SmtpServerStub.1.1.171-I-3.nupkg to https://www.nuget.org/api/v2/package...OK Publishing SmtpServerStub.1.1.171-I-3.symbols.nupkg to https://nuget.smbsrc.net/api/v2/package... Error publishing package. NuGet server returned 500: Internal Server Error</code>`</p>
<p>Guess that is because now it tries to upload symbols to default nuget.smbsrc.net</p></div>valentin.kostiuktag:help.appveyor.com,2012-11-13:Comment/485346872020-08-19T18:32:38Z2020-08-19T18:32:38Zsnupkg symbols are not uploaded to nuget.org<div><p>Right, it's because it's trying to publish <code>.symbols.nupkg</code> - do not publish it to artifacts.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/485346872020-08-19T20:18:15Z2020-08-19T20:18:15Zsnupkg symbols are not uploaded to nuget.org<div><p>Hi Feodor,</p>
<p>Great thanks!<br>
That worked!<br>
Had to update regex of deployed artifacts to</p>
<p>artifact: /.*(?<!symbols)(.|.s)nupkg/</p>
<p>So it will not mutch legacy symbol files. Did not find how to disable those in msbuild.</p>
<p>I believe you can close this support ticket. :-)</p>
<p>Thank you!</p></div>valentin.kostiuktag:help.appveyor.com,2012-11-13:Comment/485346872020-08-19T20:32:15Z2020-08-19T20:32:15Zsnupkg symbols are not uploaded to nuget.org<div><p>Cool, thanks for the update!</p></div>Feodor Fitsner