"use strict";(self.webpackChunkfurion=self.webpackChunkfurion||[]).push([[8213],{3656:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>l,contentTitle:()=>d,default:()=>h,frontMatter:()=>c,metadata:()=>o,toc:()=>u});var i=s(5893),t=s(1151),r=s(4996);const c={id:"nuget-local",title:"2.15 NuGet \u672c\u5730\u8c03\u8bd5\u5305",sidebar_label:"2.15 NuGet \u672c\u5730\u8c03\u8bd5\u5305",description:"\u5982\u4f55\u4f7f\u7528 NuGet \u672c\u5730\u8c03\u8bd5\u5305"},d=void 0,o={id:"nuget-local",title:"2.15 NuGet \u672c\u5730\u8c03\u8bd5\u5305",description:"\u5982\u4f55\u4f7f\u7528 NuGet \u672c\u5730\u8c03\u8bd5\u5305",source:"@site/docs/nuget-local.mdx",sourceDirName:".",slug:"/nuget-local",permalink:"/docs/nuget-local",draft:!1,unlisted:!1,editUrl:"https://gitee.com/dotnetchina/Furion/tree/v4/handbook/docs/nuget-local.mdx",tags:[],version:"current",lastUpdatedBy:"MonkSoul",lastUpdatedAt:1682387971,formattedLastUpdatedAt:"Apr 25, 2023",frontMatter:{id:"nuget-local",title:"2.15 NuGet \u672c\u5730\u8c03\u8bd5\u5305",sidebar_label:"2.15 NuGet \u672c\u5730\u8c03\u8bd5\u5305",description:"\u5982\u4f55\u4f7f\u7528 NuGet \u672c\u5730\u8c03\u8bd5\u5305"},sidebar:"docs",previous:{title:"2.14 Visual Studio \u9ad8\u6548\u7387",permalink:"/docs/vsfast"},next:{title:"3. \u5e94\u7528\u542f\u52a8",permalink:"/docs/category/appstart"}},l={},u=[{value:"2.15.1 \u5173\u4e8e\u672c\u5730\u6d4b\u8bd5\u5305",id:"2151-\u5173\u4e8e\u672c\u5730\u6d4b\u8bd5\u5305",level:2},{value:"2.15.2 \u5982\u4f55\u914d\u7f6e",id:"2152-\u5982\u4f55\u914d\u7f6e",level:2},{value:"2.15.2.1 \u6d4b\u8bd5\u5305\u547d\u540d\u89c4\u5219",id:"21521-\u6d4b\u8bd5\u5305\u547d\u540d\u89c4\u5219",level:3},{value:"2.15.2.2 \u914d\u7f6e\u672c\u5730\u5305\u8def\u5f84",id:"21522-\u914d\u7f6e\u672c\u5730\u5305\u8def\u5f84",level:3},{value:"2.15.2.3 \u5728 Visual Studio
\u4e2d\u914d\u7f6e\u8def\u5f84",id:"21523-\u5728-visual-studio-\u4e2d\u914d\u7f6e\u8def\u5f84",level:3},{value:"2.15.2.4 \u9009\u62e9\u6d4b\u8bd5\u7248\u5b89\u88c5\u6216\u66f4\u65b0",id:"21524-\u9009\u62e9\u6d4b\u8bd5\u7248\u5b89\u88c5\u6216\u66f4\u65b0",level:3},{value:"2.15.3 Visual Studio
\u8c03\u8bd5 NuGet
\u5305",id:"2153-visual-studio-\u8c03\u8bd5-nuget-\u5305",level:2},{value:"2.15.4 \u53cd\u9988\u4e0e\u5efa\u8bae",id:"2154-\u53cd\u9988\u4e0e\u5efa\u8bae",level:2}];function a(e){const n={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h2,{id:"2151-\u5173\u4e8e\u672c\u5730\u6d4b\u8bd5\u5305",children:"2.15.1 \u5173\u4e8e\u672c\u5730\u6d4b\u8bd5\u5305"}),"\n",(0,i.jsxs)(n.p,{children:["\u6b63\u5e38\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u90fd\u662f\u901a\u8fc7 ",(0,i.jsx)(n.code,{children:"NuGet"})," \u5728\u7ebf\u5e73\u53f0\uff08Visual Studio \u5185\u7f6e\u7684 ",(0,i.jsx)(n.code,{children:"NuGet"})," \u5305\u7ba1\u7406\u5668\uff09\u5b89\u88c5\u62d3\u5c55\u4f9d\u8d56\uff0c",(0,i.jsxs)(n.strong,{children:["\u4f46\u6709\u65f6\u5019\u6211\u4eec\u4e0d\u5e0c\u671b\u53d1\u5e03\u5230 ",(0,i.jsx)(n.code,{children:"NuGet"})," \u5e73\u53f0\u6216\u8005\u53ea\u60f3\u5728\u672c\u5730\u4f7f\u7528\u53c8\u6216\u8005\u5148\u5728\u672c\u5730\u6d4b\u8bd5\u901a\u8fc7\u518d\u53d1\u5e03\u3002"]})]}),"\n",(0,i.jsx)(n.p,{children:"\u8fd9\u6837\u505a\u7684\u597d\u5904\u662f\uff1a"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:"\u53ef\u4ee5\u6709\u6548\u4fdd\u62a4\u516c\u53f8\u6838\u5fc3\u4ee3\u7801"}),"\n",(0,i.jsx)(n.li,{children:"\u65b9\u4fbf\u5f00\u6e90\u9879\u76ee\u6d4b\u8bd5"}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"2152-\u5982\u4f55\u914d\u7f6e",children:"2.15.2 \u5982\u4f55\u914d\u7f6e"}),"\n",(0,i.jsx)(n.h3,{id:"21521-\u6d4b\u8bd5\u5305\u547d\u540d\u89c4\u5219",children:"2.15.2.1 \u6d4b\u8bd5\u5305\u547d\u540d\u89c4\u5219"}),"\n",(0,i.jsxs)(n.p,{children:["\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c",(0,i.jsx)(n.code,{children:"Furion"})," \u4f1a\u6839\u636e ",(0,i.jsx)(n.code,{children:"Furion.\u7248\u672c\u53f7-beta.Issue\u7f16\u53f7"})," \u89c4\u5219\u751f\u6210 ",(0,i.jsx)(n.code,{children:".nupkg"})," \u548c ",(0,i.jsx)(n.code,{children:".snupkg"})," \u5305\uff0c\u524d\u8005\u662f\u4e0d\u5305\u542b\u8c03\u8bd5\u7684\u65e0\u7b26\u53f7 ",(0,i.jsx)(n.code,{children:"NuGet"})," \u5305\uff0c\u540e\u8005\u5219\u662f\u8c03\u8bd5\u7b26\u53f7\u5305\uff08\u65b9\u4fbf ",(0,i.jsx)(n.code,{children:"IDE"})," \u8c03\u8bd5\u7528\u7684\uff09\uff0c\u5982\uff1a"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-showLineNumbers",metastring:'title="D:\\Furion_NuGet_Test_Packages"',children:"Furion.4.2.3-beta-I5MM3O.nupkg\r\nFurion.4.2.3-beta-I5MM3O.snupkg\n"})}),"\n",(0,i.jsxs)(n.p,{children:["\u5176\u4e2d ",(0,i.jsx)(n.code,{children:"I5MM3O"})," \u5bf9\u5e94\u7684\u6b63\u662f ",(0,i.jsx)(n.code,{children:"Issue"})," \u7684\u7f16\u53f7\uff1a",(0,i.jsx)(n.a,{href:"https://gitee.com/dotnetchina/Furion/issues/I5MM3O",children:"https://gitee.com/dotnetchina/Furion/issues/I5MM3O"})]}),"\n",(0,i.jsx)(n.h3,{id:"21522-\u914d\u7f6e\u672c\u5730\u5305\u8def\u5f84",children:"2.15.2.2 \u914d\u7f6e\u672c\u5730\u5305\u8def\u5f84"}),"\n",(0,i.jsxs)(n.p,{children:["\u6709\u4e86\u8fd9\u4e24\u4e2a\u5305\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u5728\u672c\u5730\u78c1\u76d8\u4e2d\u521b\u5efa\u6587\u4ef6\u5939\u5e76\u653e\u8fdb\u53bb\uff0c\u5982 ",(0,i.jsx)(n.code,{children:"D:\\Furion_NuGet_Test_Packages"}),"\u3002"]}),"\n",(0,i.jsx)("img",{src:(0,r.Z)("img/ng1.png")}),"\n",(0,i.jsxs)(n.h3,{id:"21523-\u5728-visual-studio-\u4e2d\u914d\u7f6e\u8def\u5f84",children:["2.15.2.3 \u5728 ",(0,i.jsx)(n.code,{children:"Visual Studio"})," \u4e2d\u914d\u7f6e\u8def\u5f84"]}),"\n",(0,i.jsx)("img",{src:(0,r.Z)("img/ng2.png")}),"\n",(0,i.jsx)("img",{src:(0,r.Z)("img/ng3.png")}),"\n",(0,i.jsx)("img",{src:(0,r.Z)("img/ng4.png")}),"\n",(0,i.jsxs)(n.admonition,{title:"\u5173\u4e8e\u547d\u4ee4\u884c\u64cd\u4f5c",type:"tip",children:[(0,i.jsxs)(n.p,{children:["\u5982\u679c\u4e0d\u4f7f\u7528\u53ef\u89c6\u5316 ",(0,i.jsx)(n.code,{children:"IDE"})," \u914d\u7f6e\uff0c\u53ef\u901a\u8fc7\u4e0b\u5217\u547d\u4ee4\u884c\u914d\u7f6e\uff1a"]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:'dotnet restore "YourProject.Web.Entry/YourProject.Web.Entry.csproj" -s "D:\\Furion_NuGet_Test_Packages";\r\ndotnet restore "YourProject.Web.Entry/YourProject.Web.Entry.csproj" -s "https://api.nuget.org/v3/index.json";\n'})})]}),"\n",(0,i.jsx)(n.h3,{id:"21524-\u9009\u62e9\u6d4b\u8bd5\u7248\u5b89\u88c5\u6216\u66f4\u65b0",children:"2.15.2.4 \u9009\u62e9\u6d4b\u8bd5\u7248\u5b89\u88c5\u6216\u66f4\u65b0"}),"\n",(0,i.jsx)("img",{src:(0,r.Z)("img/ng5.png")}),"\n",(0,i.jsx)("img",{src:(0,r.Z)("img/ng6.png")}),"\n",(0,i.jsx)("img",{src:(0,r.Z)("img/ng7.png")}),"\n",(0,i.jsx)("br",{}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"\u6d4b\u8bd5\u901a\u8fc7\u540e\u53ef\u4ee5\u5220\u9664\u4e4b\u524d\u7684\u914d\u7f6e\u5373\u53ef"}),"\uff0c\u5982\uff1a"]}),"\n",(0,i.jsx)("img",{src:(0,r.Z)("img/ng8.png")}),"\n",(0,i.jsxs)(n.h2,{id:"2153-visual-studio-\u8c03\u8bd5-nuget-\u5305",children:["2.15.3 ",(0,i.jsx)(n.code,{children:"Visual Studio"})," \u8c03\u8bd5 ",(0,i.jsx)(n.code,{children:"NuGet"})," \u5305"]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"Furion"})," \u63d0\u4f9b\u4e86 ",(0,i.jsx)(n.code,{children:".snupkg"})," \u5305\uff0c\u5728\u5b89\u88c5 ",(0,i.jsx)(n.code,{children:"Furion"})," \u7684\u65f6\u5019\u81ea\u52a8\u4e0b\u8f7d\u5230\u672c\u5730\uff0c\u5982\u9700\u542f\u7528\u6e90\u7801\u8c03\u8bd5\uff0c\u53ea\u9700\u8981\u542f\u7528\u4ee5\u4e0b\u914d\u7f6e\u5373\u53ef\uff1a"]}),"\n",(0,i.jsx)("img",{src:(0,r.Z)("img/vs10.png")}),"\n",(0,i.jsxs)(n.p,{children:["\u542f\u7528\u4e4b\u540e\u91cd\u65b0\u7f16\u8bd1\u89e3\u51b3\u65b9\u6848\u5c31\u53ef\u4ee5\u901a\u8fc7 ",(0,i.jsx)(n.code,{children:"F12"})," \u8df3\u8f6c\u5230\u6e90\u4ee3\u7801\u533a\u5e76\u8c03\u8bd5\u6e90\u4ee3\u7801\u4e86\u3002"]}),"\n",(0,i.jsx)(n.h2,{id:"2154-\u53cd\u9988\u4e0e\u5efa\u8bae",children:"2.15.4 \u53cd\u9988\u4e0e\u5efa\u8bae"}),"\n",(0,i.jsx)(n.admonition,{title:"\u4e0e\u6211\u4eec\u4ea4\u6d41",type:"note",children:(0,i.jsxs)(n.p,{children:["\u7ed9 Furion \u63d0 ",(0,i.jsx)(n.a,{href:"https://gitee.com/dotnetchina/Furion/issues/new?issue",children:"Issue"}),"\u3002"]})})]})}function h(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(a,{...e})}):a(e)}},1151:(e,n,s)=>{s.d(n,{Z:()=>d,a:()=>c});var i=s(7294);const t={},r=i.createContext(t);function c(e){const n=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:c(e.components),i.createElement(r.Provider,{value:n},e.children)}}}]);