How does the 'Package NuGet projects' feature work?
Hello,
I'd like to know how AppVeyor knows which projects it should pack when the 'Package NuGet projects' feature is enabled. I can't get it to work when I use a custom build script instead of using the .sln file to coordinate the build.
Here's an oversimplified example of my custom build script:
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Project Include="src\*.csproj" />
</ItemGroup>
<Target Name="Build">
<MSBuild Targets="Build"
Projects="@(Project)"
Properties="Configuration=$(Configuration);Platform=$(Platform)" />
</Target>
</Project>
The thing that you should take away from this is that I'm referencing projects dynamically using wildcards. Could that be the reason why AppVeyor won't execute nuget pack for my projects?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

Support Staff 1 Posted by Feodor Fitsner on 18 Apr, 2015 08:31 PM
Yeah, there are some assumptions/limitations with automatic NuGet packaging:
.slnbuilds only when AppVeyor is able to list projects and their project folders..nuspecfile must have the same name as.*projfile and should be placed next to project file.2 Posted by steven.liekens on 19 Apr, 2015 09:25 AM
So automatic packaging does actually require a solution file (sln)?
Support Staff 3 Posted by Feodor Fitsner on 19 Apr, 2015 01:24 PM
Correct.
- Feodor
4 Posted by Steffen Wenz on 12 Nov, 2016 01:05 PM
Hi Fidor,
currently I have the problem that no nuget package is packed in my open source project: https://ci.appveyor.com/project/SteffenWenz/n26
Regards,
Steffen
5 Posted by Ilya Finkelshte... on 13 Nov, 2016 10:36 AM
Hi Steffen,
Please send us your appveyor.yml (use Settings > Export YAML if you use UI configuration).
Thanks!
--ilya.
6 Posted by Steffen Wenz on 13 Nov, 2016 11:54 AM
7 Posted by Ilya Finkelshte... on 15 Nov, 2016 07:10 AM
Hi Steffen,
Sorry for confusion. Currently built-in nuget packaging works only with classic solutions. For .NET Core please set the following:
Also if you want to deal conditionally with pre-release versions you may change
after_buildpart to something like this:Thank you,
Ilya.
8 Posted by Steffen Wenz on 19 Nov, 2016 09:59 PM
Hi Ilya,
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?
Thanks,
Steffen
9 Posted by Ilya Finkelshte... on 20 Nov, 2016 04:13 AM
Sure :) Common problem is
AssemblyInformationalVersiontag does not existAssemblyInfo.csfile, therefore AppVeyor has nothing to patch, and thenversioninnuspecfile has no value to substitute with. Please check this potential problem first.--ilya.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:09 AM.