[{"data":1,"prerenderedAt":140},["ShallowReactive",2],{"i-mdi:theme-light-dark":3,"i-mdi:menu":8,"i-mdi:linkedin":10,"i-mdi:github":12,"i-mdi:email-outline":14,"article-\u002Farticles\u002Fhow-to-use-other-developers-work-in-own-project-nuget-package-manager":16,"i-mdi:arrow-left":138},{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":7},0,24,false,"\u003Cpath fill=\"currentColor\" d=\"M7.5 2c-1.79 1.15-3 3.18-3 5.5s1.21 4.35 3.03 5.5C4.46 13 2 10.54 2 7.5A5.5 5.5 0 0 1 7.5 2m11.57 1.5l1.43 1.43L4.93 20.5L3.5 19.07zm-6.18 2.43L11.41 5L9.97 6l.42-1.7L9 3.24l1.75-.12l.58-1.65L12 3.1l1.73.03l-1.35 1.13zm-3.3 3.61l-1.16-.73l-1.12.78l.34-1.32l-1.09-.83l1.36-.09l.45-1.29l.51 1.27l1.36.03l-1.05.87zM19 13.5a5.5 5.5 0 0 1-5.5 5.5c-1.22 0-2.35-.4-3.26-1.07l7.69-7.69c.67.91 1.07 2.04 1.07 3.26m-4.4 6.58l2.77-1.15l-.24 3.35zm4.33-2.7l1.15-2.77l2.2 2.54zm1.15-4.96l-1.14-2.78l3.34.24zM9.63 18.93l2.77 1.15l-2.53 2.19z\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":9},"\u003Cpath fill=\"currentColor\" d=\"M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":11},"\u003Cpath fill=\"currentColor\" d=\"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93zM6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37z\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":13},"\u003Cpath fill=\"currentColor\" d=\"M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33s1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":15},"\u003Cpath fill=\"currentColor\" d=\"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2zm-2 0l-8 5l-8-5zm0 12H4V8l8 5l8-5z\"\u002F>",{"id":17,"title":18,"body":19,"category":124,"description":30,"extension":125,"meta":126,"navigation":127,"path":128,"published":129,"seo":130,"stem":131,"tags":132,"__hash__":137},"articles\u002Farticles\u002Fhow-to-use-other-developers-work-in-own-project-nuget-package-manager.md","How to use other developers work in own project - NuGet Package Manager",{"type":20,"value":21,"toc":116},"minimark",[22,27,31,35,38,48,55,58,63,66,71,75,78,83,86,91,94,97,102,106],[23,24,26],"h2",{"id":25},"what-is-nuget","What is NuGet?",[28,29,30],"p",{},"NuGet is a package manager for .NET developers widening horizons and makes our job easier. This great tool is giving ability to simply consume libraries made by other developers and use them in our own projects.",[23,32,34],{"id":33},"how-to-use-nuget","How to use NuGet?",[28,36,37],{},"NuGet is default package manager pre-installed in Visual Studio. We can easily browse through thousands of libraries using web browser or built-in tool.In Visual Studio:",[39,40,41,45],"ol",{},[42,43,44],"li",{},"Create new project",[42,46,47],{},"Go to Tools > Package Manager > Manage NuGet Packages for Solution",[28,49,50],{},[51,52],"img",{"alt":53,"src":54},"NuGet Image","\u002Fimages\u002F2\u002FNuget1.jpg",[28,56,57],{},"The NuGet Package manager should appear as new card in our solution",[28,59,60],{},[51,61],{"alt":53,"src":62},"\u002Fimages\u002F2\u002FNuGet2.jpg",[28,64,65],{},"Now, we are able to discover libraries which were made by other developers. We can also inject them to our own project what will save us big amount of time. Today, I would like to show an example of using Html Agility Pack to present, how we can use custom libraries. To install library, we just have to click on its name, select project in which library has to be installed and click \"Install\". We can check if our library was installed correctly by simply clicking \"Installed\" card.",[28,67,68],{},[51,69],{"alt":53,"src":70},"\u002Fimages\u002F2\u002FNuGet3.jpg",[23,72,74],{"id":73},"how-to-use-library-installed-using-nuget","How to use library installed using NuGet?",[28,76,77],{},"To use library in our solution, we just simply has to add library to list of libraries at the beginning of program:",[28,79,80],{},[51,81],{"alt":53,"src":82},"\u002Fimages\u002F2\u002FNuget4.jpg",[28,84,85],{},"In Solution Explorer window (on the right side) we have to open References and find name of our library:",[28,87,88],{},[51,89],{"alt":53,"src":90},"\u002Fimages\u002F2\u002FNuGet5.jpg",[28,92,93],{},"After double-clicking on library name, we will be able to discover all functionality provided by this library.",[28,95,96],{},"We also have to remember to add \"using LibraryName;\" as below:",[28,98,99],{},[51,100],{"alt":53,"src":101},"\u002Fimages\u002F2\u002FNuGet6.jpg",[23,103,105],{"id":104},"summary","Summary",[28,107,108,109,115],{},"In my opinion, NuGet is a basic tool which has to be known by every .NET developer. The work is way easier if we don’t have to do work which was already made by someone else. For further reading visit: ",[110,111,112],"a",{"href":112,"rel":113},"https:\u002F\u002Fdocs.microsoft.com\u002Fen-us\u002Fnuget\u002Fwhat-is-nuget",[114],"nofollow"," If you have any questions, don’t hesitate to contact me.",{"title":117,"searchDepth":118,"depth":118,"links":119},"",2,[120,121,122,123],{"id":25,"depth":118,"text":26},{"id":33,"depth":118,"text":34},{"id":73,"depth":118,"text":74},{"id":104,"depth":118,"text":105},"C#","md",{},true,"\u002Farticles\u002Fhow-to-use-other-developers-work-in-own-project-nuget-package-manager",null,{"title":18,"description":30},"articles\u002Fhow-to-use-other-developers-work-in-own-project-nuget-package-manager",[124,133,134,135,136],"CSharp","NuGet","Package Manager","Packets","JzCfVmwgfCDqZlVWd6VSKhu2B0-4TukO_i8dGV8hGIo",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":139},"\u003Cpath fill=\"currentColor\" d=\"M20 11v2H8l5.5 5.5l-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5L8 11z\"\u002F>",1783161036185]