tag:help.appveyor.com,2012-11-13:/discussions/questions/293-ive-created-a-nuspec-now-whatAppVeyor: Discussion 2018-08-25T01:46:04Ztag:help.appveyor.com,2012-11-13:Comment/331995142014-05-30T14:14:52Z2017-12-10T15:45:22ZI've created a .nuspec -- now what?<div><p>An update on where I am: I understand now that I need to move the .nuspec file into the project's root (I foolishly had it in the solution root).</p>
<p>I also checked off the <code>Package Nuget Projects</code> option on the <code>Build</code> menu.</p>
<p>I now get a <code>.nupkg</code> in my artifacts directory, with the name of <code>[MyPackage].[Version].nupkg</code>. Awesome!</p>
<p>One question remains -- I'd like to automatically push this artifact to Nuget.org, which means (I think) that I first i have to push it to my private feed.</p>
<p>to do this, my reading seems to suggest using the following command on a successful build: <code>appveyor PushArtifact <your-nugetpackage.nupkg></code></p>
<p>However, I'm not always going to know the version name. Looking into how to figure that part out now. Any help is appreciated.</p></div>seankilleentag:help.appveyor.com,2012-11-13:Comment/331995142014-05-30T18:40:34Z2014-05-30T18:40:34ZI've created a .nuspec -- now what?<div><p>Hi Sean,</p>
<p>Thanks for the update! I feel creating NuGet packages with
AppVeyor is worth a separate tutorial or blog post :)</p>
<p>If you managed to get .nupkg in artifacts then the only thing
you have to do is adding "NuGet" deployment step on "Deployment"
tab of project settings. This will automatically publish all (or
selected) NuGet package artifacts.</p>
<p>Please let me know if you have further questions.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/331995142014-06-23T20:28:26Z2014-06-23T20:28:27ZI've created a .nuspec -- now what?<div><p>Hi Feodor,</p>
<p>I'm stuck at the same point. When I go to the "Deployment" tab
of the project settings and select "Nuget", I need to enter at
least an API key and Nuget server is said to be nuget.org if not
specified.</p>
<p>So your suggestion doesn't work for me.</p>
<p>Thanks, Max</p></div>Maxtag:help.appveyor.com,2012-11-13:Comment/331995142014-06-24T03:39:02Z2014-06-24T03:39:02ZI've created a .nuspec -- now what?<div><p>Hi Max,</p>
<p>So, do you have an issue with packaging nuget artifact or
deploying it? What errors are you getting?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/331995142014-06-24T10:34:02Z2014-06-24T10:34:03ZI've created a .nuspec -- now what?<div><p>Hi Feodor,</p>
<p>The nuget packaging works and all packages appear as artifacts.
But they aren't pushed to the project nuget feed or the account
nuget feed.</p>
<p>In the meantime I added a Nuget deployment step to publish the
packages to nuget.org and that works. But I'm still not sure how I
can get the nuget package artifacts on the project feed. There
aren't any errors.</p>
<p>Max</p></div>Maxtag:help.appveyor.com,2012-11-13:Comment/331995142014-06-24T15:55:47Z2014-06-24T15:55:47ZI've created a .nuspec -- now what?<div><p>Do those NuGet packages have "NuGet Package" type on Artifacts
page?</p></div>Feodor Fitsner