Tworzenie paczek NuGet

W skrócie opisze jak tworzyć paczki nuget bezpośrednio z projektu VS.

Wszystkie polecenia będziemy wykonywać narzędziem nuget.exe

Tworzenie paczki release

W folderze z projektem (plik .csporj) uruchamiamy

nuget spec

Po uruchomieniu zostanie utworzony specjalny plik .nuspec o takiej samej nazwie jak nazwa projektu. Plik ten zawiera meta informację na temat paczki.

<package >
<releaseNotes>My project release notes</releaseNotes>
<copyright>Copyright 2016</copyright>
<tags>tag1 tag2</tags>

Dane w formacie $xyz$ oznaczają że te informacje są pobierane z pliku dll.

Gdy plik nuspec mamy już gotowy to budujemy projekt i tworzymy paczkę uruchamiając polecenie:

nuget pack MyProject.csproj

Jeśli chcemy dodać zależne biblioteki to dodajemy parametr IncludeReferencedProjects

nuget pack MyProject.csproj -IncludeReferencedProjects -Prop Configuration=Release

Jeśli paczka się utworzy to wysyłamy ją na serwer poleceniem:

nuget push MyProject.1.0.0.nupkg -s API_KEY

Tworzenie paczki prerelease

Jeśłi paczkę tworzymy z pliku projektu (.csproj lub .vbproj) to utworzenie paczki prelese ogranicza się do dodania atrybutu AssemblyInformationalVersionAttribute i określeniu wersji:

[assembly: AssemblyInformationalVersion("1.0.1-alpha")]

NuGet użyje tej wartości zamiast danych z AssemblyVersion.

Więcej informacji

6,590 thoughts on “Tworzenie paczek NuGet”

  1. Upkeep prices with single family houses and apartment buildings have
    turned out to be the undoing of many real-estate investors.

  2. Great weblog right here! Additionally your web site a lot up fast! What host are you the usage of? Can I get your associate link in your host? I desire my site loaded up as fast as yours lol

  3. This is a fee which, if managed unchanged through
    the loan at the subsequently-present interest’s residual life
    rate, will probably pay the mortgage over its existence that is remaining.

  4. Of VHDA and its financial programs and goods, eligibility conditions, interest rates, charges and all other mortgage terminology) is
    subject to change without notice.

  5. You are so interesting! I do not think I have read something like this before.
    So good to find someone with original thoughts on this topic.
    Seriously.. thank you for starting this up. This site is something that is required on the web, someone with some originality!

  6. Undeniably believe that which you said. Your favorite justification appeared to be on the net the easiest thing to be aware of. I say to you, I definitely get annoyed while people consider worries that they just don’t know about. You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people could take a signal. Will probably be back to get more. Thanks

  7. Very nice post. I just stumbled upon your blog and wanted to say that I’ve really enjoyed browsing your blog posts. In any case I’ll be subscribing to your feed and I hope you write again soon!

  8. Thank you for the auspicious writeup. It in fct was a amusement account it.
    Look advanced to more added agreeable from you! By tthe way, how can we communicate?

  9. Although they appear like demigods on the screen, celebrities are “humanized” on photos.

    ” And who knows more about glamour than some of the folks who attach their names to perfume bottles. Knowing the powerful influence of twitter is also beneficial to web designers in the sense they can help their clients develop a prescence in social media.

  10. Because of the complexity of buying or selling business
    property or a home, people frequently seek help from real estate real estate agents
    and sales agents.

  11. I will immediately snatch your rss as I can not find your e-mail subscription hyperlink or newsletter service. Do you’ve any? Please permit me recognise in order that I may just subscribe. Thanks.

  12. Hey Tyson, this unit looks a lot like my proto-type I’m doing right now with just pvc pipes & electric box. Upon building it, i 2 ran across spacing problems & had to work another route 2 ensure it fits in2 my car. The guard is no doubt a excellent thought cuz i 2 have that 2 ensure no liquid will splash high enough 2 get sucked n. 4 the float, i would just go with the fuel float instead for a longer lifespan. Ur unit looks a bit huge. i have a new design now way differ from my proto-type.

  13. Hello there, I discovered your site by means
    of Google even as looking for a comparable subject, your
    web site got here up, it seems to be good. I have bookmarked it in my google bookmarks.

    Hi there, simply turned into alert to your weblog via Google, and
    located that it’s truly informative. I’m going to be careful for
    brussels. I’ll appreciate in case you continue this in future.
    Many other people will be benefited from your writing.

  14. To begin with, one thing thing you must do as a real-estate investor
    is figure out what your individual strategy will be. You need
    to learn and understand what your long term investment
    strategy is by finding out what is your finish line
    and what is your starting point.

  15. hey there and thank you for your info – I have definitely picked up anything new from right here. I did however expertise a few technical issues using this website, as I experienced to reload the web site lots of times previous to I could get it to load correctly. I had been wondering if your web host is OK? Not that I am complaining, but slow loading instances times will very frequently affect your placement in google and could damage your high quality score if ads and marketing with Adwords. Anyway I’m adding this RSS to my email and could look out for a lot more of your respective interesting content. Ensure that you update this again soon..

  16. As I web-site possessor I believe the content matter here is rattling fantastic , appreciate it for your hard work. You should keep it up forever! Best of luck.

  17. I get pleasure from, result in I found just what I used to be taking a look for. You have ended my four day lengthy hunt! God Bless you man. Have a great day. Bye

  18. Good day! This is kind of off topic but I need some help from an established blog.
    Is it very difficult to set up your own blog? I’m not very techincal
    but I can figure things out pretty fast. I’m thinking about setting
    up my own but I’m not sure where to begin. Do you have any
    ideas or suggestions? Many thanks

  19. Wow, fantastic blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your site is magnificent, as well as the content!

  20. Nevertheless, a lawyer cannot so act ethically while concurrently representing a party into
    a real estate transaction in a lawful capacity on account of lawyers’ ethics rules.

  21. I would like to thnkx for the efforts you’ve put in writing this website. I’m hoping the same high-grade website post from you in the upcoming as well. Actually your creative writing abilities has encouraged me to get my own web site now. Really the blogging is spreading its wings quickly. Your write up is a great example of it.

  22. hey there and thank you for your information ?
    I have definitely picked up anything new
    from right here. I did however expertise a few technical points using this
    web site, since I experienced to reload the site many times previous to I could get it to load correctly.
    I had been wondering if your web host is OK? Not that
    I’m complaining, but slow loading instances times will
    very frequently affect your placement in google and could damage your high-quality score if ads and marketing with
    Adwords. Anyway I am adding this RSS to my email and can look out for much more of your respective fascinating content.
    Ensure that you update this again soon.

  23. Wonderful paintings! This is the kind of info that are meant to be shared around the web. Shame on the search engines for no longer positioning this submit upper! Come on over and discuss with my website . Thank you =)

  24. Good ¡V I should certainly pronounce, impressed with your website. I had no trouble navigating through all the tabs as well as related information ended up being truly simple to do to access. I recently found what I hoped for before you know it in the least. Quite unusual. Is likely to appreciate it for those who add forums or anything, website theme . a tones way for your customer to communicate. Excellent task..

  25. magnificent issues altogether, you simply received
    a emblem new reader. What may you suggest about your put up that you
    just made a few days ago? Any positive?

  26. OҺ my goodness! Awesome article dude! Τhank уou, Howevеr I am һaving issues ᴡith your RSS.

    Ι don’t know tҺe reason ѡhy Ι can’t join іt.
    Is there anyЬody else haᴠing identical RSS issues?
    Anybߋdy wwho ҝnows the solution wilⅼ yoᥙ kindly respond?

Leave a Reply