How do I publish a solution to MyGet?

Pure Krome's Avatar

Pure Krome

01 Nov, 2014 12:01 AM

Hi,

i've manually published packages many many times up to (the official) NuGet gallery. I know about nuspecs etc.

Now, I'm trying to utilize MyGet for in development packages. I've followed this post to setup my settings .. so that's fine ..

but I'm not sure about how AppVeyor knows how to use nuspecs or whatever. I don't understand the connection between the two.

Are there some doc's that can explain how I tell AppVeyor that this is my nuspec or whatever and that's used to make the package which you then push up to MyGet?

  1. Support Staff 1 Posted by Feodor Fitsner on 01 Nov, 2014 12:30 AM

    Feodor Fitsner's Avatar

    There is only very narrow scenario currently supported: http://www.appveyor.com/docs/nuget#auto-package, i.e. when there is .nuspec file in the root of project.

  2. 2 Posted by Pure Krome on 01 Nov, 2014 12:51 AM

    Pure Krome's Avatar

    What about multiple .nuspec files?

    Would you consider adding in an optional setting in the project settings, that allow us to define the folder where the nuspecs are? (I don't like spamming the root folder with nuspecs and instead put them in a folder called NuSpecs or whatever).

  3. Support Staff 3 Posted by Feodor Fitsner on 01 Nov, 2014 12:56 AM

    Feodor Fitsner's Avatar

    Yeah, NuGet automatic packaging should be definitely improved. Could you please describe in more details your use case?

  4. 4 Posted by Pure Krome on 01 Nov, 2014 01:38 AM

    Pure Krome's Avatar

    Sure :)

    here's a screenshot I've cooked up in 1 sec.
    woot!

    So this is the use case :-

    1. Create a few nuspecs for my solution into a folder called NuSpec Files or whatever (the point here is that there could be a space in the folder name)
    2. Commit new code, push up to GH.
    3. On successful build and test, pack those nuspecs and push up to MyGet.

    later on, then do an environmental push to NuGet.

    I'm making a pretty big convention call here and that is that there's only one folder to contain all the nuspecs. Improving on this, there could be a default list of paths.

    eg.
    Root folder : \
    1st Attempt: \NuSpecs
    2nd attempt: \NuSpec Files
    .. etc...

  5. Support Staff 5 Posted by Feodor Fitsner on 04 Nov, 2014 02:15 AM

    Feodor Fitsner's Avatar

    OK, I see. Thanks for sharing your thoughts. Right now deployment in AppVeyor follows some kind of "build once deploy everywhere" concept, i.e. your first push everything to artifacts and then deploy from artifacts only. So, in case of NuGet I think we could improve packaging NuGet package artifacts by specifying locations with ready packages.

  6. 6 Posted by Pure Krome on 05 Nov, 2014 11:37 PM

    Pure Krome's Avatar

    is there a road map or issue tracker so I can see if a suggestion like this (the ability to define a location of .nuspec files) is on the todo list and the progress of it?

  7. Support Staff 7 Posted by Feodor Fitsner on 06 Nov, 2014 12:15 AM

    Feodor Fitsner's Avatar
  8. 8 Posted by Pure Krome on 07 Nov, 2014 12:30 AM

    Pure Krome's Avatar

    May I add this question there, as an issue please, so I can keep track of it, etc?

  9. Support Staff 9 Posted by Feodor Fitsner on 07 Nov, 2014 12:40 AM

    Feodor Fitsner's Avatar

    Sure!

    -Feodor

  10. Pure Krome closed this discussion on 29 Jan, 2015 04:18 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

 

06 Jun, 2024 02:12 PM
06 Jun, 2024 03:49 AM
04 Jun, 2024 03:53 AM
30 May, 2024 04:03 PM
27 May, 2024 02:06 AM
20 May, 2024 09:52 PM