You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
23 KiB
JavaScript

1 year ago
"use strict";(self.webpackChunkfurion=self.webpackChunkfurion||[]).push([[4038],{2204:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>o,contentTitle:()=>c,default:()=>m,frontMatter:()=>d,metadata:()=>t,toc:()=>h});var r=s(5893),i=s(1151),l=s(4996);const d={id:"singlefile",title:"34.5. \u5355\u6587\u4ef6\u53d1\u5e03",sidebar_label:"34.5. \u5355\u6587\u4ef6\u53d1\u5e03"},c=void 0,t={id:"singlefile",title:"34.5. \u5355\u6587\u4ef6\u53d1\u5e03",description:"\u4ee5\u4e0b\u5185\u5bb9\u4ec5\u9650 Furion 3.5.2 + \u7248\u672c\u4f7f\u7528\u3002",source:"@site/docs/singlefile.mdx",sourceDirName:".",slug:"/singlefile",permalink:"/docs/singlefile",draft:!1,unlisted:!1,editUrl:"https://gitee.com/dotnetchina/Furion/tree/v4/handbook/docs/singlefile.mdx",tags:[],version:"current",lastUpdatedBy:"liberty",lastUpdatedAt:1668576548,formattedLastUpdatedAt:"Nov 16, 2022",frontMatter:{id:"singlefile",title:"34.5. \u5355\u6587\u4ef6\u53d1\u5e03",sidebar_label:"34.5. \u5355\u6587\u4ef6\u53d1\u5e03"},sidebar:"docs",previous:{title:"34.4 \u4e8c\u7ea7\u865a\u62df\u76ee\u5f55\u90e8\u7f72",permalink:"/docs/virtual-deploy"},next:{title:"34.6 pm2 \u90e8\u7f72",permalink:"/docs/pm2"}},o={},h=[{value:"34.5.1 \u5386\u53f2\u80cc\u666f",id:"3451-\u5386\u53f2\u80cc\u666f",level:2},{value:"34.5.2 \u5fc5\u8981\u914d\u7f6e",id:"3452-\u5fc5\u8981\u914d\u7f6e",level:2},{value:"34.5.3 \u53d1\u5e03",id:"3453-\u53d1\u5e03",level:2},{value:"34.5.4 \u81ea\u5b9a\u4e49\u542f\u52a8\u7aef\u53e3",id:"3454-\u81ea\u5b9a\u4e49\u542f\u52a8\u7aef\u53e3",level:2},{value:"34.5.5 <code>pm2</code> \u5b88\u62a4\u8fdb\u7a0b\u90e8\u7f72",id:"3455-pm2-\u5b88\u62a4\u8fdb\u7a0b\u90e8\u7f72",level:2},{value:"34.5.5.1 \u8fd0\u884c\u5f0a\u7aef",id:"34551-\u8fd0\u884c\u5f0a\u7aef",level:3},{value:"34.5.5.2 <code>pm2</code> \u5b88\u62a4\u8fdb\u7a0b\u90e8\u7f72",id:"34552-pm2-\u5b88\u62a4\u8fdb\u7a0b\u90e8\u7f72",level:3},{value:"\u5fc5\u8981\u6761\u4ef6",id:"\u5fc5\u8981\u6761\u4ef6",level:4},{value:"34.5.5.3 <code>pm2</code> \u5e38\u89c1\u64cd\u4f5c",id:"34553-pm2-\u5e38\u89c1\u64cd\u4f5c",level:3},{value:"34.5.6 \u53cd\u9988\u4e0e\u5efa\u8bae",id:"3456-\u53cd\u9988\u4e0e\u5efa\u8bae",level:2}];function a(e){const n={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",h4:"h4",li:"li",mdxAdmonitionTitle:"mdxAdmonitionTitle",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.admonition,{title:"\u7248\u672c\u8bf4\u660e",type:"important",children:(0,r.jsxs)(n.p,{children:["\u4ee5\u4e0b\u5185\u5bb9\u4ec5\u9650 ",(0,r.jsx)(n.code,{children:"Furion 3.5.2 +"})," \u7248\u672c\u4f7f\u7528\u3002"]})}),"\n",(0,r.jsx)(n.h2,{id:"3451-\u5386\u53f2\u80cc\u666f",children:"34.5.1 \u5386\u53f2\u80cc\u666f"}),"\n",(0,r.jsxs)(n.p,{children:["\u81ea ",(0,r.jsx)(n.code,{children:".NET Core 3"})," \u8d77\uff0c\u5fae\u8f6f\u5c31\u63d0\u4f9b\u4e86\u5355\u6587\u4ef6\u53d1\u5e03\u7684\u6280\u672f\u652f\u6301\uff0c\u4f46\u5b9e\u9645\u4e0a\u5e76\u4e0d\u662f ",(0,r.jsx)(n.code,{children:".NET"})," \u6240\u6709 ",(0,r.jsx)(n.code,{children:"CLR"})," \u90fd\u652f\u6301\u5355\u6587\u4ef6\u53d1\u5e03\uff0c\u5982 ",(0,r.jsx)(n.code,{children:"Microsoft.Extensions.DependencyModel"})," \u5305\u672c\u8eab\u4e0d\u652f\u6301\u5355\u6587\u4ef6\u53d1\u5e03\uff0c\u539f\u56e0\u662f\u5185\u90e8\u4f7f\u7528\u4e86 ",(0,r.jsx)(n.code,{children:"Assembley.CodeBase"}),"\u3002"]}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"\u597d\u5de7\u4e0d\u5de7"}),"\uff0c",(0,r.jsx)(n.code,{children:"Furion"})," \u4e2d\u62db\u4e86\uff0c\u5728\u8fc7\u53bb\u4e24\u5e74\u4e2d\uff0c",(0,r.jsx)(n.code,{children:"Furion"})," \u4f9d\u8d56\u8be5\u5305\u7684 ",(0,r.jsx)(n.code,{children:"DependencyContext.Default"})," \u7279\u6027\u8fdb\u884c\u7a0b\u5e8f\u96c6\u626b\u63cf\uff0c\u6240\u4ee5\u5355\u6587\u4ef6\u53d1\u5e03\u4e5f\u5c31\u6210\u4e86 ",(0,r.jsx)(n.code,{children:"Furion"})," \u4e0d\u613f\u63d0\u8d77\u7684\u75db\uff01\uff01\uff01"]}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["\u7ec8\u4e8e\uff0c\u5728 ",(0,r.jsx)(n.code,{children:"Furion v3.5.2+"})," \u7