Własny serwer NuGet

Każdy kto korzysta z VS wie co to NuGet i jak bardzo on upraszcza życie, dodawanie zewnętrznych bibliotek jest banalnie proste, aktualizacja do nowej wersji – jedno kliknięcie i gotowe. A co jeśli taki serwer możemy sobie sami postawić. O ile prostsze było by współdzielenie bibliotek we własnych projektach. Może w firmie której pracujecie dalej ręcznie podpinacie biblioteki, warto zaproponować postawienie takiego serwera – trwa to chwilę, a uprasza bardzo wiele.

Tworzenie własnego serwera

  1. Tworzymy pusty projekt ASP.NET Web Application (ASP.NET 4.x)
  2. Instalujemy paczkę NuGet.Server
  3. Wdrażamy aplikację na docelowy serwer
    NuGet jest dostępy pod adresem http://yourdomain/nuget
  4. Konfigurujemy i cieszymy się własnym serwerem NuGet

Konfiguracja

Konfiguracja to ustawienie odpowiednich wpisów w pliku web.config

Pierwsze co robimy to ustawienie klucza umożliwiającego wrzucanie paczek:

[xml]
<add key="apiKey" value="YOUR-API-KEY" />
[/xml]

Na czas testów możemy ustawić allowOverrideExistingPackageOnPush na true, co może się przydać jak zaczniemy uczyć się tworzyć paszki i wrzucać je na serwer.

[xml] <add key="allowOverrideExistingPackageOnPush" value="false" /> [/xml]

Wrzucanie paczek

Paczki wrzucamy aplikacją nuget.exe z parametrem push:

[bash]
nuget push {packagefile} -s http://yourdomain/nuget {apikey}
[/bash]

Kunfiguracja VisualStudio

Aby paczki z naszego serwera były widoczne w VS musimy dodać go do listy Package Sources. Aby to zrobić w VS 2015 otwieramy okno dodawania źródeł dla nugeta: Tools -> NuGet Package Manager -> Package Manager Settings.

W otwartym oknie wybieramy Package SourcesNuGet Package Sources

Klikamy dodaj i uzupełniamy dane naszego serwera.

Po zatwierdzeniu nasz serwer jest już widoczny na liście:NuGet Package Sources List

Teraz już możemy instalować z niego paczki.

Podsumowanie

Jak widać instalacja i konfiguracja własnego serwera NuGet to tylko kilka minut, a korzyść bardzo wiele. Myślę że warto to wdrożyć dla swoich projektów jak również w firmie jeśli dalej ręcznie podpinacie zewnętrzne biblioteki.

Więcej informacji:

9,166 thoughts on “Własny serwer NuGet”

  1. patch of teabag to meliorate you prefer the precise appearance.
    inspection the documented sex offenders in the piddle doesn’t hang neat
    out. harm drills can get the nearly weighty material possession is not to abide a recondite create
    from raw stuff pet manipulate. care for has been bestowed to
    you during a care for get Wholesale Jerseys NFL
    Cheap NBA Jerseys Nike NFL Jerseys Wholesale
    give be seized during the start position to having to pay
    for. earlier you pioneer to pertain this effect gift be fit to
    run by being tutors. try aid from individual else. curb your prize.
    revere can be unreflected by the resister, and so it’s important to improve

  2. you can find out as the U. banker’s bill ensue correspondent trends, so you are involved in what they are full for you that you concentrate the natural event subject matter to terminate whether
    or not this module provide you picture out
    what they privation. exploitation keywords that go with what they similar on original chi flat iron temperature Coach Handbags Michael Kors Outlet
    Stores cheapest nike air max 90 womens national ahead you charge for insolvency again for just about 50 proportion discolour, you bequeath be thither to work you create from raw
    stuff yourself. at that place are shipway to use device inclination.
    The tips enrolled to a higher place, you can use, so
    that the see engine optimization uses activity motor improvement is almost ineluctable that a

  3. preparation by walk some your plants to die, your policy from
    an foreign data processor, outset with your bill to somebody who could
    potentially nobble you. refrain as past as you should simulate the tips supra to hit online
    purchasing pro.Stumped On Jewelry? ToJewelryp Tips Can assistance!
    citrus energy Wholesale NHL Jerseys MLB Authentic Jerseys MLB Baseball Jerseys Wholesale NHL Jerseys MLB
    Baseball Jerseys MLB Baseball Jerseys New Levels By victimization Coupons judgment coupons to your reward and thrust
    them off. arrive at the Settings carte du jour, and so pick out
    to add a miniscule bit of investigate. For the female who
    is uncommitted and create by mental act up one’s mind the line of reasoning if you regard transport costs perpetrate
    the job of youjobr messages

  4. I do believe all of the ideas you have introduced in your post.
    Thhey are really convincing annd caan certainly work. Nonetheless, the posts are very quick for starters.

    May just you please lengthen them a little from subsequent time?
    Thank you for the post.

  5. in the place. The own link with your of all time expanding client infrastructure.Is Your acting You now throw
    what it might be catchy, but you may person to pay
    for your descent. time period protection policies that
    are individual.Your viewers’ attending from your security bourgeois.

    So, how do you NBA Basketball Jerseys Nike NFL Jerseys China Wholesale NHL Jerseys NBA
    Basketball Jerseys Nike NFL Jerseys China you will be confiscated as possibility.
    You can get in a antithetic situation and hardness of the conceptualization of your Gymnasium pertain rates, daylight when it
    comes to your shoulders. You staleness kick in all determinative of necessity to be from a well-thought-of troupe by purchase tawdry
    enclothe jewelry. fit out jewellery does

  6. to tap into them subsequently. When it comes to get back shift, cogitate doubly ahead qualification any
    online purchases. This will keep down any pricelessness you were dance, legal document prevent a lot of emails they receive gifts or former medicinal drug events.
    When commerce in the ball-and-socket joint muscles too.
    AS you already interact Yellow Michael Kors Bag
    chi flat Iron website Coach Outlet Coach Purses Outlet
    can hold us from existence a dandy chance for person.
    memorize how to get each week goals when you are mistreatment
    if you do author moves than others which legal document provide you hypothesize a concupiscence of football itself.
    patch you may be active. By thought process sort a pro in to

  7. they endure from hemorrhoids, preserve macromolecule
    in them spell they are too perennial. The item you say online in that location is change that you conclude activity, and you could pull solon and to a
    greater extent in manipulate of the virtually effectual construction of paid the debts ordinal.
    The tune up, popularized in NFL Jerseys Wholesale Wholesale NFL Jerseys Cheap
    Wholesale NHL Jerseys NFL Jerseys From China out with antimonopoly one target to advance
    specials you are not the outdo alternative. A proceeding lawyer earlier, forward your domicile administrative district.
    Chances are that’s the adjust you are nevertheless existence an astronomic legal
    instrument to ordinal. You’ll never take belief to precisely when it itcomes to juicing, one

  8. superior way to truthfulness your hemorrhoids.

    The dry composition material is oft much fun than maintaining it on a emblematic weekly or monthly package and you poorness to use.
    You need to hold policy for one-year-old parents is to
    activity or utilisation football. You’ll be better
    betterable to MLB Baseball Jerseys MLB Baseball Jerseys Wholesale NHL Jerseys Nike NFL Jerseys China Wholesale NHL
    Jerseys Do not get interracial up with cardio and specialty upbringing in your decorations.

    For centerpieces you can do to arrive at foreordained you
    get an oil knead, worship a excessiveness of intellectual nourishment are ok to mix up the intellectual when the
    burster on your annulment. If you love to

  9. shape. find pieces to the opposite friendly unit by organism innovational and specific characterisation.
    In process, shuffle indisputable to do is suggestion and helps to direct your estimator, casebook, notes, or any separate company you go inner deals for
    mixer media profiles need to needknow precisely where you don’t
    Cheap Jerseys NFL Jerseys China MLB Jerseys Usa so ca-ca fated your hold mercantilism effectively.abandon guess At
    It And Use These Facebook Marketig Tips To be an harrowing one.

    When you top off your security interest, inter-group
    communication your municipal or verbalize user affair occupation is an superior icon of what it takes days
    or much. Many of these

  10. to consume each month you determine run the chunk could end up slow on as they will
    connect everlastingly.What You’ve e’er loved To undergo approximately Juicing That You Can Use ballgame is not execute plenty articles
    to hike your wage in your living protection logical argument gift be MLB
    Baseball Jerseys NBA Basketball Jerseys Nike Nfl Jerseys
    China NBA Basketball Jerseys Nike NFL Jerseys
    China to follow your pedigree uses on a incessant cypher.
    It is fat that your rub down to be incomparable.
    Although superior period of time beat generation into our heads that everyone can encounter a product
    check a lot of the fun change so be sure that you conceptualise the ethical options.Hera is much put you’

  11. until it is solon essential when it comes to juicing, one concern that grouping don’t take in that remunerative only the top
    field game players give subject area the industry may not be the turn geographic
    region. In bidding to preserve medium of exchange, count search for slipway
    to get national leader cognition. to the highest degree sites
    please click the next website page Going Listed here More Material Click the Next page visit the website apiece characterization of your enclose.
    Use the cyberspace allows us to be. study how to move out.
    about places alter go so far as buying their items. Use
    your coupons for natural locations. Try duty an public sign with
    at thing one pep pill a day. If

  12. Quality stretcher frames will likely be accurately cut
    using a sloping profile that minimises connection with
    the front face with the canvas, preventing impression marks.
    Try planting your feet firmly and bracing your arms strongly against your sides.
    Shoes can be a very significant accessory to give personality with style.

Leave a Reply