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

1 year ago
"use strict";(self.webpackChunkfurion=self.webpackChunkfurion||[]).push([[8121],{8821:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>i,default:()=>x,frontMatter:()=>d,metadata:()=>c,toc:()=>a});var o=t(5893),r=t(1151),s=t(4996);const d={id:"net7-to-net8",title:"2.11 .NET7 \u5347\u7ea7 .NET8",sidebar_label:"2.11 .NET7 \u5347\u7ea7 .NET8 \u2728",description:"\u4e86\u89e3\u5982\u4f55\u4ece .NET7 \u5347\u7ea7\u5230 .NET8"},i=void 0,c={id:"net7-to-net8",title:"2.11 .NET7 \u5347\u7ea7 .NET8",description:"\u4e86\u89e3\u5982\u4f55\u4ece .NET7 \u5347\u7ea7\u5230 .NET8",source:"@site/docs/net7-to-net8.mdx",sourceDirName:".",slug:"/net7-to-net8",permalink:"/docs/net7-to-net8",draft:!1,unlisted:!1,editUrl:"https://gitee.com/dotnetchina/Furion/tree/v4/handbook/docs/net7-to-net8.mdx",tags:[],version:"current",lastUpdatedBy:"\u767e\u5c0f\u50e7",lastUpdatedAt:1700811349,formattedLastUpdatedAt:"Nov 24, 2023",frontMatter:{id:"net7-to-net8",title:"2.11 .NET7 \u5347\u7ea7 .NET8",sidebar_label:"2.11 .NET7 \u5347\u7ea7 .NET8 \u2728",description:"\u4e86\u89e3\u5982\u4f55\u4ece .NET7 \u5347\u7ea7\u5230 .NET8"},sidebar:"docs",previous:{title:"2.10 .NET6 \u5347\u7ea7 .NET7",permalink:"/docs/net6-to-net7"},next:{title:"2.12 GlobalUsing \u4f7f\u7528",permalink:"/docs/globalusing"}},l={},a=[{value:"2.11.1 \u5347\u7ea7\u6ce8\u610f\u4e8b\u9879",id:"2111-\u5347\u7ea7\u6ce8\u610f\u4e8b\u9879",level:2},{value:"2.11.1.1 \u5b89\u88c5 <code>.NET8 SDK</code>",id:"21111-\u5b89\u88c5-net8-sdk",level:3},{value:"2.11.1.2 \u7f16\u8f91 <code>.csproj</code> \u6587\u4ef6",id:"21112-\u7f16\u8f91-csproj-\u6587\u4ef6",level:3},{value:"2.11.1.3 \u5347\u7ea7 <code>NuGet</code> \u5305",id:"21113-\u5347\u7ea7-nuget-\u5305",level:3},{value:"2.11.1.4 \u91cd\u65b0\u7f16\u8bd1\u6574\u4e2a\u89e3\u51b3\u65b9\u6848",id:"21114-\u91cd\u65b0\u7f16\u8bd1\u6574\u4e2a\u89e3\u51b3\u65b9\u6848",level:3},{value:"2.11.1.5 \u5347\u7ea7\u5931\u8d25\u89e3\u51b3\u65b9\u6848",id:"21115-\u5347\u7ea7\u5931\u8d25\u89e3\u51b3\u65b9\u6848",level:3}];function h(e){const n={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",li:"li",ol:"ol",p:"p",strong:"strong",...(0,r.a)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.admonition,{title:".NET8 \u53d1\u5e03",type:"caution",children:(0,o.jsx)(n.p,{children:(0,o.jsx)(n.strong,{children:"\ud83d\ude80\ud83c\udf89\ud83d\udd25 2023 \u5e74 11 \u6708 15 \u65e5\uff0c\u5fae\u8f6f\u53d1\u5e03\u4e86 .NET8 \u9996\u4e2a\u6b63\u5f0f\u7248\u3002"})})}),"\n",(0,o.jsx)(n.h2,{id:"2111-\u5347\u7ea7\u6ce8\u610f\u4e8b\u9879",children:"2.11.1 \u5347\u7ea7\u6ce8\u610f\u4e8b\u9879"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsxs)(n.strong,{children:["\u76ee\u524d\u4f7f\u7528 ",(0,o.jsx)(n.code,{children:"Furion"})," \u6240\u6709\u7248\u672c\uff080.x-3.x\uff09\u7684\u7528\u6237\u5747\u53ef\u4ee5\u5feb\u901f\u65e0\u7f1d\u5347\u7ea7\u81f3 ",(0,o.jsx)(n.code,{children:"Furion v4.x"})," \u7248\u672c\uff0c\u53ea\u9700\u8981\u505a\u5c11\u91cf\u66f4\u6539\u5373\u53ef\u3002"]})}),"\n",(0,o.jsxs)(n.h3,{id:"21111-\u5b89\u88c5-net8-sdk",children:["2.11.1.1 \u5b89\u88c5 ",(0,o.jsx)(n.code,{children:".NET8 SDK"})]}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.a,{href:"https://dotnet.microsoft.com/download/dotnet/8.0",children:"https://dotnet.microsoft.com/download/dotnet/8.0"})}),"\n",(0,o.jsxs)(n.h3,{id:"21112-\u7f16\u8f91-csproj-\u6587\u4ef6",children:["2.11.1.2 \u7f16\u8f91 ",(0,o.jsx)(n.code,{children:".csproj"})," \u6587\u4ef6"]}),"\n",(0,o.jsxs)(n.p,{children:["\u7f16\u8f91\u89e3\u51b3\u65b9\u6848\u6240\u6709\u9879\u76ee\u7684 ",(0,o.jsx)(n.code,{children:".csproj"})," \u6587\u4ef6\uff0c\u5e76\u66ff\u6362 ",(0,o.jsx)(n.code,{children:"<TargetFramework>net7.0</TargetFramework>"})," \u4e3a ",(0,o.jsx)(n.code,{children:"<TargetFramework>net8.0</TargetFramework>"}),"\uff0c\u5982\uff1a"]}),"\n",(0,o.jsx)("img",{src:(0,s.Z)("img/net81.png")}),"\n",(0,o.jsxs)(n.p,{children:["\u5f53\u7136\u4e5f\u53ef\u4ee5\u4f7f\u7528 ",(0,o.jsx)(n.code,{children:"Ctrl + F"})," \u5168\u5c40\u66ff\u6362"]}),"\n",(0,o.jsx)("img",{src:(0,s.Z)("img/net82.png")}),"\n",(0,o.jsxs)(n.h3,{id