When using "publish_nuget: true" my .nuspec is ignored and it is packaging the csproj instead

dan.p.turner's Avatar

dan.p.turner

05 Aug, 2015 11:48 AM

I have configured the following build and set it to automatically perform a Nuget pack:
https://ci.appveyor.com/project/dan-turner/appconfigtransforms

On this repo:
https://github.com/dan-turner/AppConfigTransforms/tree/master/src/A...

I followed the instructions in the following thread (which aren't in the doco btw):
http://help.appveyor.com/discussions/questions/1210-how-does-the-pa...

So I have a solution file, that solution file points at a .csproj, there is a corresponding .nuspec sitting right next to it. However as you can see in the build output it's calling:
nuget pack "C:\<snip>\AppConfigTransforms.csproj"

instead of:
nuget pack "C:\<snip>\AppConfigTransforms.nuspec"

Is this a bug?

  1. Support Staff 1 Posted by Feodor Fitsner on 05 Aug, 2015 05:02 PM

    Feodor Fitsner's Avatar

    It's not a bug - this is how it's currently done.

    You can use your own nuget pack command instead of "automatic" one.

  2. 2 Posted by dan.p.turner on 06 Aug, 2015 01:36 AM

    dan.p.turner's Avatar

    Ok, so at a guess your current logic for publish_nuget: true is:

    1. Find all .*proj files
    2. Filter this list to only .*proj files with a matching .nuspec
    3. For each of of these perform a nuget pack on the .*proj

    It would be awesome if you could change it to:

    1. Find all *.nuspec
    2. For each of these perform a nuget pack, but:
      2.1 If there IS a matching .*proj, pack the .*proj
      2.2 If there is NOT a matching .*proj, pack the .nuspec

    The thing I'm trying to package simply contains some msbuild targets, the only reason I created the .csproj in the first place was to try and get appveyor to automatically package it. The problem is when it's packages using the .csproj the package ends up with a useless .dll produced by the project.

  3. Support Staff 3 Posted by Feodor Fitsner on 06 Aug, 2015 04:51 AM

    Feodor Fitsner's Avatar

    Yeah, thanks for suggestion.

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:58 AM.

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

 

01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM