1:"$Sreact.fragment"
2:I[3361,["619","static/chunks/619-ba102abea3e3d0e4.js","177","static/chunks/app/layout-282e4f938c9cf638.js"],"default"]
3:I[8320,["619","static/chunks/619-ba102abea3e3d0e4.js","177","static/chunks/app/layout-282e4f938c9cf638.js"],"default"]
4:I[9766,[],""]
5:I[8924,[],""]
6:I[2619,["619","static/chunks/619-ba102abea3e3d0e4.js","368","static/chunks/app/guides/nuget-packages/page-49a27633e2f34d93.js"],""]
7:I[9526,["619","static/chunks/619-ba102abea3e3d0e4.js","177","static/chunks/app/layout-282e4f938c9cf638.js"],"default"]
8:I[1503,["619","static/chunks/619-ba102abea3e3d0e4.js","177","static/chunks/app/layout-282e4f938c9cf638.js"],"default"]
9:I[2067,["619","static/chunks/619-ba102abea3e3d0e4.js","177","static/chunks/app/layout-282e4f938c9cf638.js"],"default"]
a:I[271,["619","static/chunks/619-ba102abea3e3d0e4.js","177","static/chunks/app/layout-282e4f938c9cf638.js"],"default"]
10:I[7150,[],""]
:HL["/_next/static/css/4d5966dc5757b8a7.css","style"]
b:T947,{"@context":"https://schema.org","@type":"HowTo","name":"NuGet Guide: Install Packages, Build Your Own Package, Test Locally, and Publish","headline":"NuGet Guide: Install Packages, Build Your Own Package, Test Locally, and Publish","description":"Learn how to use NuGet packages in .NET projects, restore dependencies, create an SDK-style package, run dotnet pack, test a local .nupkg, and publish with dotnet nuget push.","datePublished":"2026-09-21","dateModified":"2026-09-21","author":{"@type":"Organization","name":"GrowBitLabs","url":"https://growbitlabs.com"},"publisher":{"@type":"Organization","name":"GrowBitLabs","url":"https://growbitlabs.com"},"mainEntityOfPage":"https://growbitlabs.com/guides/nuget-packages","url":"https://growbitlabs.com/guides/nuget-packages","keywords":"NuGet guide, how to use NuGet, how to build a NuGet package, dotnet pack, dotnet package add, dotnet add package, dotnet nuget push, local NuGet package, NuGet PackageReference","step":[{"@type":"HowToStep","position":1,"name":"What NuGet is","url":"https://growbitlabs.com/guides/nuget-packages#what-is-nuget"},{"@type":"HowToStep","position":2,"name":"Install a package","url":"https://growbitlabs.com/guides/nuget-packages#install"},{"@type":"HowToStep","position":3,"name":"Restore and build","url":"https://growbitlabs.com/guides/nuget-packages#restore"},{"@type":"HowToStep","position":4,"name":"Create a package","url":"https://growbitlabs.com/guides/nuget-packages#create"},{"@type":"HowToStep","position":5,"name":"Package metadata","url":"https://growbitlabs.com/guides/nuget-packages#metadata"},{"@type":"HowToStep","position":6,"name":"Build the .nupkg","url":"https://growbitlabs.com/guides/nuget-packages#pack"},{"@type":"HowToStep","position":7,"name":"Test locally","url":"https://growbitlabs.com/guides/nuget-packages#local-test"},{"@type":"HowToStep","position":8,"name":"Publish","url":"https://growbitlabs.com/guides/nuget-packages#publish"},{"@type":"HowToStep","position":9,"name":"Versioning","url":"https://growbitlabs.com/guides/nuget-packages#versioning"},{"@type":"HowToStep","position":10,"name":"Troubleshooting","url":"https://growbitlabs.com/guides/nuget-packages#troubleshooting"},{"@type":"HowToStep","position":11,"name":"Recommended workflow","url":"https://growbitlabs.com/guides/nuget-packages#workflow"}],"about":{"@type":"Thing","name":"NuGet"}}0:{"P":null,"b":"TlHNjuBH1TPV1I6NSN3t-","p":"","c":["","guides","nuget-packages"],"i":false,"f":[[["",{"children":["guides",{"children":["nuget-packages",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/4d5966dc5757b8a7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":[["$","div",null,{"className":"scroll-progress","id":"scrollProgress"}],["$","$L3",null,{}],["$","main",null,{"id":"top","children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","section",null,{"className":"inner-hero","children":["$","div",null,{"className":"container","children":[["$","div",null,{"className":"inner-eyebrow reveal","children":[["$","span",null,{"children":"404"}],["$","i",null,{}],["$","span",null,{"children":"PAGE NOT FOUND"}]]}],["$","div",null,{"className":"inner-hero-copy reveal","children":[["$","h1",null,{"children":["This page took a wrong ",["$","em",null,{"children":"turn."}]]}],["$","p",null,{"children":"The address may have changed, or the page may no longer be available."}],["$","div",null,{"className":"inner-hero-actions","children":[["$","$L6",null,{"className":"btn primary","href":"/","children":"GO HOME"}],["$","$L6",null,{"className":"btn text","href":"/stemcode","children":"VIEW STEMCODE →"}]]}]]}]]}]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$L7",null,{}],["$","footer",null,{"className":"site-footer","children":["$","div",null,{"className":"container footer-shell","children":[["$","div",null,{"className":"footer-brand-block","children":[["$","$L6",null,{"className":"brand brand-footer","href":"/","aria-label":"GrowBitLabs home","children":["$","img",null,{"className":"brand-logo","src":"/assets/logo.png","alt":"GrowBitLabs logo"}]}],["$","p",null,{"children":"Home of StemCode and GrowBit Convo. Local-first AI development, private AI infrastructure, and agent engineering."}]]}],["$","div",null,{"className":"footer-columns","children":[["$","nav",null,{"aria-label":"Solutions links","children":[["$","strong",null,{"children":"SOLUTIONS"}],["$","$L6",null,{"href":"/stemcode","children":"StemCode"}],["$","$L6",null,{"href":"/stemcode-survey","children":"StemCode Survey"}],["$","$L6",null,{"href":"/compare","children":"StemCode Comparisons"}],["$","$L6",null,{"href":"/growbit-convo","children":"GrowBit Convo"}],["$","$L6",null,{"href":"/open-models","children":"Open Models"}],["$","$L6",null,{"href":"/pricing","children":"Pricing"}],["$","$L6",null,{"href":"/enterprise","children":"Enterprise"}],["$","$L6",null,{"href":"/docs","children":"StemCode Docs"}],["$","$L6",null,{"href":"/guides","children":"Developer Guides"}]]}],["$","nav",null,{"aria-label":"Company links","children":[["$","strong",null,{"children":"COMPANY"}],["$","$L6",null,{"href":"/about","children":"About"}],["$","$L6",null,{"href":"/services","children":"Services"}],["$","$L6",null,{"href":"/contact","children":"Contact"}],["$","$L6",null,{"href":"/careers","children":"Careers"}],["$","$L6",null,{"href":"/press","children":"Press"}]]}],["$","nav",null,{"aria-label":"Legal links","children":[["$","strong",null,{"children":"LEGAL"}],["$","$L6",null,{"href":"/privacy","children":"Privacy Policy"}],["$","$L6",null,{"href":"/terms","children":"Terms of Service"}],["$","$L8",null,{}]]}],["$","nav",null,{"aria-label":"Social links","children":[["$","strong",null,{"children":"SOCIAL"}],["$","a",null,{"href":"https://www.linkedin.com/company/growbitlabs","target":"_blank","rel":"noopener noreferrer","children":"LinkedIn"}],["$","a",null,{"href":"https://www.facebook.com/growbitlabs/","target":"_blank","rel":"noopener noreferrer","children":"Facebook"}]]}]]}],["$","div",null,{"className":"footer-bottom","children":[["$","span",null,{"children":["(c) ",["$","span",null,{"id":"year"}]," GrowBitLabs"]}],["$","span",null,{"children":"StemCode + GrowBit Convo"}]]}]]}]}],["$","$L9",null,{}],["$","$La",null,{}]]}]}]}]]}],{"children":["guides",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["nuget-packages",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[[["$","script",null,{"type":"application/ld+json","dangerouslySetInnerHTML":{"__html":"$b"}}],"$Lc","$Ld"],null,"$Le"]}],{},null,false]},null,false]},null,false]},null,false],"$Lf",false]],"m":"$undefined","G":["$10",[]],"s":false,"S":true}
22:I[4431,[],"OutletBoundary"]
24:I[5278,[],"AsyncMetadataOutlet"]
26:I[4431,[],"ViewportBoundary"]
28:I[4431,[],"MetadataBoundary"]
29:"$Sreact.suspense"
c:["$","section",null,{"className":"inner-hero docs-hero","children":["$","div",null,{"className":"container","children":[["$","div",null,{"className":"inner-eyebrow reveal","children":[["$","$L6",null,{"href":"/guides","children":"RESOURCES / HOW-TO GUIDES"}],["$","i",null,{}],["$","span",null,{"children":"NUGET"}]]}],["$","div",null,{"className":"inner-hero-copy reveal","children":[["$","h1",null,{"children":["NuGet Guide: use packages and ",["$","em",null,{"children":"build your own."}]]}],["$","p",null,{"children":"Learn how to use NuGet packages in .NET projects, restore dependencies, create an SDK-style package, run dotnet pack, test a local .nupkg, and publish with dotnet nuget push."}],["$","div",null,{"className":"inner-hero-actions docs-hero-actions","children":[["$","a",null,{"className":"btn primary","href":"#what-is-nuget","children":"START TUTORIAL"}],["$","$L6",null,{"className":"btn text","href":"/guides","children":"ALL HOW-TO GUIDES →"}]]}],["$","div",null,{"className":"docs-meta-strip","aria-label":"Tutorial metadata","children":[["$","span",null,{"children":"STEP-BY-STEP TUTORIAL"}],["$","span",null,{"children":[11," STEPS"]}],["$","span",null,{"children":"FOLLOW ALONG IN YOUR PROJECT"}]]}]]}]]}]}]
d:["$","section",null,{"className":"docs-layout section","children":["$","div",null,{"className":"container docs-shell docs-shell-wide","children":[["$","aside",null,{"className":"docs-sidebar","aria-label":"Tutorial table of contents","children":[["$","span",null,{"className":"toc-label","children":"HOW-TO TUTORIAL"}],["$","$L6",null,{"href":"/guides","children":"All tutorials"}],false,false,["$","span",null,{"className":"toc-label","children":"TUTORIAL STEPS"}],[["$","a","#what-is-nuget",{"href":"#what-is-nuget","children":["01",". ","What NuGet is"]}],["$","a","#install",{"href":"#install","children":["02",". ","Install a package"]}],["$","a","#restore",{"href":"#restore","children":["03",". ","Restore and build"]}],["$","a","#create",{"href":"#create","children":["04",". ","Create a package"]}],["$","a","#metadata",{"href":"#metadata","children":["05",". ","Package metadata"]}],["$","a","#pack",{"href":"#pack","children":["06",". ","Build the .nupkg"]}],["$","a","#local-test",{"href":"#local-test","children":["07",". ","Test locally"]}],["$","a","#publish",{"href":"#publish","children":["08",". ","Publish"]}],["$","a","#versioning",{"href":"#versioning","children":["09",". ","Versioning"]}],["$","a","#troubleshooting",{"href":"#troubleshooting","children":["10",". ","Troubleshooting"]}],["$","a","#workflow",{"href":"#workflow","children":["11",". ","Recommended workflow"]}]]]}],["$","article",null,{"className":"docs-content","children":[["$","section",null,{"className":"docs-section reveal","children":[["$","span",null,{"children":"FOLLOW THIS TUTORIAL"}],["$","h2",null,{"children":"Work through the steps in order and try each command yourself."}],["$","p",null,{"children":"This guide is designed as a hands-on walkthrough. Start at step 1, run the commands in your own project, and verify the result before moving to the next step. You can jump to any step later using the tutorial navigation."}],["$","div",null,{"className":"docs-grid-2 docs-spaced","children":[["$","a","#what-is-nuget",{"className":"docs-feature-card","href":"#what-is-nuget","children":[["$","span",null,{"children":["STEP ","01"]}],["$","h3",null,{"children":"What NuGet is"}],["$","p",null,{"children":"Follow this step, check the result, then continue."}]]}],["$","a","#install",{"className":"docs-feature-card","href":"#install","children":[["$","span",null,{"children":["STEP ","02"]}],["$","h3",null,{"children":"Install a package"}],["$","p",null,{"children":"Follow this step, check the result, then continue."}]]}],["$","a","#restore",{"className":"docs-feature-card","href":"#restore","children":[["$","span",null,{"children":["STEP ","03"]}],["$","h3",null,{"children":"Restore and build"}],["$","p",null,{"children":"Follow this step, check the result, then continue."}]]}],["$","a","#create",{"className":"docs-feature-card","href":"#create","children":[["$","span",null,{"children":["STEP ","04"]}],["$","h3",null,{"children":"Create a package"}],["$","p",null,{"children":"Follow this step, check the result, then continue."}]]}]]}],["$","p",null,{"children":["Continue through all ",11," steps using the tutorial list on this page."]}]]}],[["$","section",null,{"id":"what-is-nuget","className":"docs-section reveal","children":[["$","span",null,{"children":"01 / WHAT NUGET IS"}],["$","h2",null,{"children":"NuGet is the package manager used by .NET."}],["$","p",null,{"children":["A NuGet package normally contains compiled .NET assemblies together with metadata such as its package ID, version, dependencies, license, repository information, and supported target frameworks. Projects consume packages through a ",["$","code",null,{"children":"PackageReference"}]," in the project file."]}],["$","p",null,{"children":["In modern SDK-style projects, the ",["$","code",null,{"children":"dotnet"}]," CLI is usually all you need for installing, restoring, packing, and publishing NuGet packages."]}],["$","div",null,{"className":"docs-callout docs-callout-strong","children":[["$","strong",null,{"children":"THE BASIC LOOP"}],["$","p",null,{"children":["Consume packages with the .NET CLI, build your application normally, and create reusable packages from SDK-style projects with",["$","code",null,{"children":" dotnet pack"}],"."]}]]}]]}],["$","section",null,{"id":"install","className":"docs-section reveal","children":["$L11","$L12","$L13","$L14","$L15","$L16","$L17"]}],"$L18","$L19","$L1a","$L1b","$L1c","$L1d","$L1e","$L1f","$L20"],"$L21"]}]]}]}]
e:["$","$L22",null,{"children":["$L23",["$","$L24",null,{"promise":"$@25"}]]}]
f:["$","$1","h",{"children":[null,[["$","$L26",null,{"children":"$L27"}],null],["$","$L28",null,{"children":["$","div",null,{"hidden":true,"children":["$","$29",null,{"fallback":null,"children":"$L2a"}]}]}]]}]
11:["$","span",null,{"children":"02 / INSTALL A PACKAGE"}]
12:["$","h2",null,{"children":"Add a NuGet dependency to a .NET project."}]
13:["$","p",null,{"children":"Open a terminal in the directory that contains your project file and add the package you want to use."}]
14:["$","div",null,{"className":"doc-command","children":[["$","b",null,{"children":".NET 10+"}],["$","code",null,{"children":"dotnet package add Newtonsoft.Json"}]]}]
15:["$","div",null,{"className":"doc-command","children":[["$","b",null,{"children":".NET 9 and earlier"}],["$","code",null,{"children":"dotnet add package Newtonsoft.Json"}]]}]
16:["$","p",null,{"children":"A typical project-file result looks like this:"}]
17:["$","pre",null,{"children":["$","code",null,{"children":"\n \n"}]}]
18:["$","section",null,{"id":"restore","className":"docs-section reveal","children":[["$","span",null,{"children":"03 / RESTORE AND BUILD"}],["$","h2",null,{"children":"Restore dependencies, then use the normal .NET build pipeline."}],["$","pre",null,{"children":["$","code",null,{"children":"dotnet restore\ndotnet build\ndotnet test"}]}],["$","p",null,{"children":[["$","code",null,{"children":"dotnet restore"}]," resolves package dependencies and downloads missing packages. Most build commands restore automatically, but an explicit restore stage is useful in CI because it makes dependency failures easier to diagnose."]}]]}]
19:["$","section",null,{"id":"create","className":"docs-section reveal","children":[["$","span",null,{"children":"04 / CREATE A PACKAGE"}],["$","h2",null,{"children":"Start from an SDK-style class library."}],["$","pre",null,{"children":["$","code",null,{"children":"mkdir GrowBit.Sample\ncd GrowBit.Sample\ndotnet new classlib"}]}],["$","p",null,{"children":"Add your reusable code, then build and test the library before you pack it."}],["$","pre",null,{"children":["$","code",null,{"children":"dotnet build\ndotnet test"}]}]]}]
1a:["$","section",null,{"id":"metadata","className":"docs-section reveal","children":[["$","span",null,{"children":"05 / PACKAGE METADATA"}],["$","h2",null,{"children":"Define package information in the project file."}],["$","p",null,{"children":["SDK-style projects can keep NuGet package metadata directly in the",["$","code",null,{"children":".csproj"}]," file."]}],["$","pre",null,{"children":["$","code",null,{"children":"\n net10.0\n GrowBit.Sample\n 1.0.0\n GrowBit Labs\n GrowBit Labs\n A short description of what the package does.\n growbit;dotnet;sample\n https://github.com/your-org/your-repo\n README.md\n MIT\n\n\n\n \n"}]}],["$","p",null,{"children":"Choose a package ID that is unique on the package source where you plan to publish it. Public packages should also include clear README, repository, license, and tag metadata."}]]}]
1b:["$","section",null,{"id":"pack","className":"docs-section reveal","children":[["$","span",null,{"children":"06 / BUILD THE PACKAGE"}],["$","h2",null,{"children":"Create the .nupkg with dotnet pack."}],["$","pre",null,{"children":["$","code",null,{"children":"dotnet pack -c Release -o ./artifacts"}]}],["$","p",null,{"children":["The output directory will contain a package similar to",["$","code",null,{"children":" GrowBit.Sample.1.0.0.nupkg"}],". For SDK-style PackageReference projects, prefer ",["$","code",null,{"children":"dotnet pack"}]," or MSBuild pack targets rather than ",["$","code",null,{"children":"nuget pack"}],"."]}]]}]
1c:["$","section",null,{"id":"local-test","className":"docs-section reveal","children":[["$","span",null,{"children":"07 / TEST LOCALLY"}],["$","h2",null,{"children":"Install the package into a clean consumer project."}],["$","p",null,{"children":["Testing the actual ",["$","code",null,{"children":".nupkg"}]," catches problems that a normal library build can miss, such as incomplete package contents, incorrect metadata, dependency issues, and target-framework mismatches."]}],["$","h3",null,{"children":"Create a consumer and install from the local artifacts folder"}],["$","pre",null,{"children":["$","code",null,{"children":"dotnet new console -n NuGetConsumer\ncd NuGetConsumer\ndotnet package add GrowBit.Sample --source ../GrowBit.Sample/artifacts\ndotnet build\ndotnet run"}]}],["$","p",null,{"children":"You can also register a local directory as a named source when you use it repeatedly:"}],["$","pre",null,{"children":["$","code",null,{"children":"dotnet nuget add source ../GrowBit.Sample/artifacts --name LocalPackages"}]}]]}]
1d:["$","section",null,{"id":"publish","className":"docs-section reveal","children":[["$","span",null,{"children":"08 / PUBLISH"}],["$","h2",null,{"children":"Push the package to a NuGet server."}],["$","pre",null,{"children":["$","code",null,{"children":"dotnet nuget push ./artifacts/GrowBit.Sample.1.0.0.nupkg --source https://api.nuget.org/v3/index.json --api-key YOUR_API_KEY"}]}],["$","p",null,{"children":"Do not commit API keys to source control. Keep publishing credentials in your CI provider's secret store or another approved secret manager."}]]}]
1e:["$","section",null,{"id":"versioning","className":"docs-section reveal","children":[["$","span",null,{"children":"09 / VERSIONING"}],["$","h2",null,{"children":"Give every published package an intentional version."}],["$","pre",null,{"children":["$","code",null,{"children":"1.0.0 first stable release\n1.1.0 backwards-compatible feature\n1.1.1 backwards-compatible fix\n2.0.0 breaking API change\n2.0.0-preview.1 prerelease"}]}],["$","p",null,{"children":"You can override the package version at pack time:"}],["$","pre",null,{"children":["$","code",null,{"children":"dotnet pack -c Release -p:PackageVersion=1.2.0"}]}]]}]
1f:["$","section",null,{"id":"troubleshooting","className":"docs-section reveal","children":[["$","span",null,{"children":"10 / TROUBLESHOOTING"}],["$","h2",null,{"children":"Start with package sources, cache, and compatibility."}],["$","div",null,{"className":"docs-grid-2","children":[["$","div",null,{"className":"docs-feature-card","children":[["$","span",null,{"children":"PACKAGE NOT FOUND"}],["$","h3",null,{"children":"Check configured sources."}],["$","pre",null,{"children":["$","code",null,{"children":"dotnet nuget list source"}]}],["$","p",null,{"children":"Confirm that the required source is enabled and the requested package version exists there."}]]}],["$","div",null,{"className":"docs-feature-card","children":[["$","span",null,{"children":"STALE CACHE"}],["$","h3",null,{"children":"Clear NuGet caches."}],["$","pre",null,{"children":["$","code",null,{"children":"dotnet nuget locals all --clear"}]}],["$","p",null,{"children":"This is useful when a local package was rebuilt and a cached copy is still being used."}]]}]]}],["$","p",null,{"children":"For dependency or framework errors, compare the package's target frameworks and dependencies with the consumer project's target framework instead of forcing an incompatible restore."}]]}]
20:["$","section",null,{"id":"workflow","className":"docs-section reveal","children":[["$","span",null,{"children":"11 / RECOMMENDED WORKFLOW"}],["$","h2",null,{"children":"Use a repeatable package-development loop."}],["$","pre",null,{"children":["$","code",null,{"children":"dotnet restore\ndotnet build -c Release\ndotnet test -c Release\ndotnet pack -c Release -o ./artifacts\n# install the .nupkg into a clean consumer project\n# verify the public API and runtime behavior\n# publish only after local/CI validation"}]}],["$","p",null,{"children":["For repository-wide .NET workflows, see the",["$","$L6",null,{"href":"/guides/stemcode-dotnet-developers","children":" StemCode .NET developer guide"}],"."]}]]}]
21:["$","section",null,{"className":"docs-section reveal","children":[["$","span",null,{"children":"TUTORIAL COMPLETE"}],["$","h2",null,{"children":"Repeat the package workflow with your own library."}],["$","p",null,{"children":"Use the same install, build, pack, local-test, and publish sequence with a package you actually maintain. Keeping the workflow repeatable makes package problems much easier to diagnose."}],["$","div",null,{"className":"docs-grid-2 docs-spaced","children":[["$","div",null,{"className":"docs-feature-card","children":[["$","span",null,{"children":"CHECK YOUR WORK"}],["$","h3",null,{"children":"Verify the result before you move on."}],["$","p",null,{"children":"Build, test, and inspect the output or diff so each tutorial step produces a result you can confirm."}]]}],["$","div",null,{"className":"docs-feature-card","children":[["$","span",null,{"children":"NEXT TUTORIAL"}],["$","h3",null,{"children":"Keep learning with another workflow."}],["$","p",null,{"children":"Browse the other hands-on guides for language-specific setup, package workflows, refactoring, testing, and code review."}],["$","$L6",null,{"className":"inline-arrow","href":"/guides","children":"VIEW ALL TUTORIALS →"}]]}]]}]]}]
27:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#f4f5f0"}]]
23:null
2b:I[622,[],"IconMark"]
25:{"metadata":[["$","title","0",{"children":"NuGet Guide: Install Packages, Build Your Own Package, Test Locally, and Publish | GrowBitLabs"}],["$","meta","1",{"name":"description","content":"Learn how to use NuGet packages in .NET projects, restore dependencies, create an SDK-style package, run dotnet pack, test a local .nupkg, and publish with dotnet nuget push."}],["$","meta","2",{"name":"keywords","content":"NuGet guide,how to use NuGet,how to build a NuGet package,dotnet pack,dotnet package add,dotnet add package,dotnet nuget push,local NuGet package,NuGet PackageReference"}],["$","meta","3",{"name":"robots","content":"index, follow"}],["$","meta","4",{"name":"googlebot","content":"index, follow"}],["$","link","5",{"rel":"canonical","href":"https://growbitlabs.com/guides/nuget-packages"}],["$","meta","6",{"property":"og:title","content":"NuGet Guide: Install Packages, Build Your Own Package, Test Locally, and Publish"}],["$","meta","7",{"property":"og:description","content":"Learn how to use NuGet packages in .NET projects, restore dependencies, create an SDK-style package, run dotnet pack, test a local .nupkg, and publish with dotnet nuget push."}],["$","meta","8",{"property":"og:url","content":"https://growbitlabs.com/guides/nuget-packages"}],["$","meta","9",{"property":"og:type","content":"article"}],["$","meta","10",{"property":"article:published_time","content":"2026-09-23"}],["$","meta","11",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","12",{"name":"twitter:title","content":"NuGet Guide: Install Packages, Build Your Own Package, Test Locally, and Publish"}],["$","meta","13",{"name":"twitter:description","content":"Learn how to use NuGet packages in .NET projects, restore dependencies, create an SDK-style package, run dotnet pack, test a local .nupkg, and publish with dotnet nuget push."}],["$","link","14",{"rel":"icon","href":"/assets/fav.png","sizes":"196x186","type":"image/png"}],["$","link","15",{"rel":"apple-touch-icon","href":"/assets/fav.png","sizes":"196x186","type":"image/png"}],["$","$L2b","16",{}]],"error":null,"digest":"$undefined"}
2a:"$25:metadata"