Unfortunately I’ve to ask for help again.
I’m working on an opensource .net library (https://ci.appveyor.com/project/DaveSenn/portableextensions, https://github.com/DaveSenn/PortableExtensions).
My library has a NuGet package (https://www.nuget.org/packages/PortableExtensions/).
Until now I created and uploaded the package manually to nuget.org.
Now I try to automat this process using the NuGet deploy feature of appveyor.
I use the ‘before_deploy’ script to create the NuGet package using nuget.exe.
The first problem:
My script (https://github.com/DaveSenn/PortableExtensions/blob/master/Nuget/pack.ps1) reads the version and other properties from the freshly built dll. (Appveyor should patch the version) But in the output of my script I can see that the version was not patched. (Wenn I download the artifacts the version of the DLL is also not patched.)
Second Problem:
I can’t figure out how to copy the generated NuGet package to the Artifacts.
I tried it with '**\*.nupkg' and 'Nuget\*.nupkg'. (The first copies only the NUnit package, the second does not copy anything).
So my questions:
- How can I fix the problem with patching the assembly information?
- How can I copy the generated NuGet package to the artifacts?
Sorry for asking you all this questions… but I can’t find a way to get it running.

#1 Posted by Feodor Fitsner Support staff on 15 May, 2015 11:38 PM
Regarding assembly patching - looks like AppVeyor doesn't "like" spaces around version value in "AssemblyVersion( "1.1.4.0" )". Will add an issue to fix that shameless mistake :)
I think the right time to call PS generating nuget packages is "after_build". Then 'nuget\*.nupkg' in artifact definition looks correct.
- Feodor
#2 Posted by Dave Senn on 16 May, 2015 12:25 PM
Thank you very much for your help.
I’ve removed the spaces (just for testing) and fixed my script (NuGet package was not created in \NuGet)… now it works.
Dave
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:56 AM.