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

"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:"21113-\u5347\u7ea7-nuget-\u5305",children:["2.11.1.3 \u5347\u7ea7 ",(0,o.jsx)(n.code,{children:"NuGet"})," \u5305"]}),"\n",(0,o.jsxs)(n.p,{children:["\u5c06 ",(0,o.jsx)(n.code,{children:"Furion"})," \u6240\u6709\u5305\u5347\u7ea7\u81f3 ",(0,o.jsx)(n.code,{children:"v4.9.1.7"})," \u7248\u672c\uff0c\u540c\u65f6 ",(0,o.jsx)(n.code,{children:"Microsoft"})," \u6240\u6709\u5305\u5347\u7ea7\u81f3 ",(0,o.jsx)(n.code,{children:"v8.0.0"})," \u7248\u672c\uff0c\u5982\uff1a"]}),"\n",(0,o.jsx)("img",{src:(0,s.Z)("img/net75.png")}),"\n",(0,o.jsx)(n.h3,{id:"21114-\u91cd\u65b0\u7f16\u8bd1\u6574\u4e2a\u89e3\u51b3\u65b9\u6848",children:"2.11.1.4 \u91cd\u65b0\u7f16\u8bd1\u6574\u4e2a\u89e3\u51b3\u65b9\u6848"}),"\n",(0,o.jsx)(n.p,{children:"\u5347\u7ea7\u5b8c\u6210\uff01\uff01\uff01"}),"\n",(0,o.jsx)(n.h3,{id:"21115-\u5347\u7ea7\u5931\u8d25\u89e3\u51b3\u65b9\u6848",children:"2.11.1.5 \u5347\u7ea7\u5931\u8d25\u89e3\u51b3\u65b9\u6848"}),"\n",(0,o.jsxs)(n.ol,{children:["\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.code,{children:"Microsoft.EntityFrameworkCore.Tools"})," \u7248\u672c\u51b2\u7a81"]}),"\n"]}),"\n",(0,o.jsxs)(n.p,{children:["\u82e5\u5347\u7ea7\u8fc7\u7a0b\u4e2d\u51fa\u73b0 ",(0,o.jsx)(n.code,{children:"Microsoft.EntityFrameworkCore.Tools"})," \u7248\u672c\u51b2\u7a81\uff0c",(0,o.jsx)(n.strong,{children:"\u53ea\u9700\u5378\u8f7d\u540e\u91cd\u65b0\u5b89\u88c5\u5373\u53ef\u3002"})]}),"\n",(0,o.jsxs)(n.ol,{start:"2",children:["\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.code,{children:"Microsoft.EntityFrameworkCore"})," \u63d0\u793a ",(0,o.jsx)(n.code,{children:"Method not found: "})," \u9519\u8bef"]}),"\n"]}),"\n",(0,o.jsxs)(n.p,{children:["\u8bf7\u786e\u4fdd\u4f7f\u7528\u7684\u6570\u636e\u5e93\u9a71\u52a8\u5305\u6709\u5bf9\u5e94\u7684 ",(0,o.jsx)(n.code,{children:"8.0.0"})," \u7248\u672c\u3002"]})]})}function x(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(h,{...e})}):h(e)}},1151:(e,n,t)=>{t.d(n,{Z:()=>i,a:()=>d});var o=t(7294);const r={},s=o.createContext(r);function d(e){const n=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:d(e.components),o.createElement(s.Provider,{value:n},e.children)}}}]);