tag:help.appveyor.com,2012-11-13:/discussions/problems/376-nuspec-not-being-builtAppVeyor: Discussion 2018-08-25T01:44:07Ztag:help.appveyor.com,2012-11-13:Comment/332289072014-06-02T14:26:24Z2014-06-02T14:26:25ZNuspec not being built<div><p>I have a valid nuspec file in the root of my GitHub repository
and I've checked the "Package NuGet projects" option, however no
matter what I try I can't seem to get a nupkg artifact to appear.
What am I missing?</p></div>Nathan Baulchtag:help.appveyor.com,2012-11-13:Comment/332289072014-06-02T16:24:09Z2014-06-02T16:24:09ZNuspec not being built<div><p>Hi Nathan,</p>
<p>Automatic NuGet packaging is built around VS project and the
idea is that you have <code>.nuspec</code> file (with the same name
as project) in the root of your project, not repo. This way
AppVeyor could call <code>nuget pack your-project.csproj</code> to
build a package.</p>
<p>Otherwise, you can call <code>nuget pack
your-package.nuspec</code> as a build script (or as part of after
build scripts) to build a package.</p>
<p>Please let me know if you have any questions.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/332289072014-06-03T13:59:10Z2014-06-03T13:59:12ZNuspec not being built<div><p>Thanks, it sounds like I need to move to the scripting
approach.</p>
<p>When I moved my nuspec file into the directory with my project
files, AppVeyor tried to build separate packages for all my
projects rather than just building the single nuspec project. This
is a problem because I have one project file for each target
framework (eg, Net20, Net40, Portable, WinFX, etc, see <a href=
"https://github.com/facebook-csharp-sdk/simple-json/tree/master/src/SimpleJson">
here</a>) that I need bundled into a single NuGet package. Right
now my AppVeyor project builds are failing because all these
separate NuGet packages files have the same file name.</p>
<p>Anyway, there definitely needs to be more documentation around
this functionality.</p></div>Nathan Baulchtag:help.appveyor.com,2012-11-13:Comment/332289072014-06-03T17:08:32Z2014-06-03T17:08:32ZNuspec not being built<div><p>Yeah, I agree it might be better using script approach to build
multiple packages.<br>
...and yes AV docs will be improved.</p></div>Feodor Fitsner