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
8.9 KiB
JavaScript

12 months ago
"use strict";(self.webpackChunkfurion=self.webpackChunkfurion||[]).push([[7071],{1488:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>h,frontMatter:()=>d,metadata:()=>o,toc:()=>a});var i=r(5893),t=r(1151),s=r(4996);const d={id:"get-start-net8",title:"2.5 ASP.NET 8 \u96c6\u6210",sidebar_label:"2.5 ASP.NET 8 \u96c6\u6210 \u2728",description:"\u5b66\u4e60\u5982\u4f55\u5728 ASP.NET 8 \u4e2d\u96c6\u6210 Furion"},c=void 0,o={id:"get-start-net8",title:"2.5 ASP.NET 8 \u96c6\u6210",description:"\u5b66\u4e60\u5982\u4f55\u5728 ASP.NET 8 \u4e2d\u96c6\u6210 Furion",source:"@site/docs/get-start-net8.mdx",sourceDirName:".",slug:"/get-start-net8",permalink:"/docs/get-start-net8",draft:!1,unlisted:!1,editUrl:"https://gitee.com/dotnetchina/Furion/tree/v4/handbook/docs/get-start-net8.mdx",tags:[],version:"current",lastUpdatedBy:"MonkSoul",lastUpdatedAt:1682387971,formattedLastUpdatedAt:"Apr 25, 2023",frontMatter:{id:"get-start-net8",title:"2.5 ASP.NET 8 \u96c6\u6210",sidebar_label:"2.5 ASP.NET 8 \u96c6\u6210 \u2728",description:"\u5b66\u4e60\u5982\u4f55\u5728 ASP.NET 8 \u4e2d\u96c6\u6210 Furion"},sidebar:"docs",previous:{title:"2.4 ASP.NET 7 \u96c6\u6210",permalink:"/docs/get-start-net7"},next:{title:"2.6 \u5b98\u65b9\u811a\u624b\u67b6",permalink:"/docs/template"}},l={},a=[{value:"2.5.1 \u521b\u5efa <code>Web</code> \u9879\u76ee",id:"251-\u521b\u5efa-web-\u9879\u76ee",level:2},{value:"2.5.1.1 \u521b\u5efa <code>ASP.NET Core Web \u5e94\u7528\u7a0b\u5e8f</code>",id:"2511-\u521b\u5efa-aspnet-core-web-\u5e94\u7528\u7a0b\u5e8f",level:3},{value:"2.5.2 \u6dfb\u52a0 <code>Furion</code> \u4f9d\u8d56\u5305",id:"252-\u6dfb\u52a0-furion-\u4f9d\u8d56\u5305",level:2},{value:"2.5.3 <code>Furion</code> \u57fa\u672c\u914d\u7f6e",id:"253-furion-\u57fa\u672c\u914d\u7f6e",level:2},{value:"2.5.3.1 <code>Program.cs</code> \u6dfb\u52a0 <code>Inject()</code>",id:"2531-programcs-\u6dfb\u52a0-inject",level:3},{value:"2.5.4 \u542f\u52a8\u6d4f\u89c8\u5668",id:"254-\u542f\u52a8\u6d4f\u89c8\u5668",level:2},{value:"2.5.5 <code>WebApplication</code> \u8bf4\u660e \ud83c\udf83",id:"255-webapplication-\u8bf4\u660e-",level:2}];function p(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.jsxs)(n.admonition,{title:"\u63a8\u8350\u4f7f\u7528\u811a\u624b\u67b6",type:"tip",children:[(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"Furion"})," \u5b98\u65b9\u63d0\u4f9b\u4e86\u975e\u5e38\u7075\u6d3b\u65b9\u4fbf\u7684\u811a\u624b\u67b6\uff0c\u53ef\u4ee5\u5feb\u901f\u7684\u521b\u5efa\u591a\u5c42\u67b6\u6784\u9879\u76ee\u3002"]}),(0,i.jsxs)(n.p,{children:["\u63a8\u8350\u4f7f\u7528 \u300a",(0,i.jsx)(n.a,{href:"/docs/template",children:"2.6 \u5b98\u65b9\u811a\u624b\u67b6"}),"\u300b\u4ee3\u66ff\u672c\u7ae0\u8282\u529f\u80fd\u3002"]})]}),"\n","\n","\n",(0,i.jsx)(n.admonition,{title:"\u5165\u95e8\u6761\u4ef6",type:"note",children:(0,i.jsxs)(n.p,{children:["\u5bf9 ",(0,i.jsx)(n.code,{children:".NET Core/ASP.NET Core"})," \u6709\u4e00\u5b9a\u57fa\u7840\u4e86\u89e3\uff0c\u8fd8\u672a\u63a5\u89e6\u7684\u53ef\u5148\u770b ",(0,i.jsx)(n.a,{href:"https://docs.microsoft.com/zh-cn/aspnet/core/fundamentals/?view=aspnetcore-8.0&tabs=windows",children:"\u3010ASP.NET Core \u57fa\u7840\u3011"})]})}),"\n",(0,i.jsxs)(n.h2,{id:"251-\u521b\u5efa-web-\u9879\u76ee",children:["2.5.1 \u521b\u5efa ",(0,i.jsx)(n.code,{children:"Web"})," \u9879\u76ee"]}),"\n",(0,i.jsx)(n.admonition,{title:"\u73af\u5883\u8981\u6c42",type:"note",children:(0,i.jsxs)(n.p,{children:["\u4f7f\u7528 ",(0,i.jsx)(n.code,{children:"Furion"})," \u4e4b\u524d\u5148\u786e\u4fdd\u5b89\u88c5\u4e86\u6700\u65b0\u7684 ",(0,i.jsx)(n.code,{children:".NET 8 SDK"})," \u5e76\u5b89\u88c5 ",(0,i.jsx)(n.code,{children:"Visual Studio 2022 Preview"})," \u6700\u65b0\u7248\u3002"]})}),"\n",(0,i.jsxs)(n.h3,{id:"2511-\u521b\u5efa-aspnet-core-web-\u5e94\u7528\u7a0b\u5e8f",children:["2.5.1.1 \u521b\u5efa ",(0,i.jsx)(n.code,{children:"ASP.NET Core Web \u5e94\u7528\u7a0b\u5e8f"})]}),"\n",(0,i.jsxs)(n.ul,{ch