首页 > 编程语言 >Microsoft.AspNetCore 已被弃用

Microsoft.AspNetCore 已被弃用

时间:2024-04-06 16:01:12浏览次数:27  
标签:1701 1702 弃用 AspNetCore 8618 enable Microsoft

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <NoWarn>1701;1702;8618;</NoWarn>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
    <NoWarn>1701;1702;8618;</NoWarn>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="NLog" Version="5.2.8" />
    <FrameworkReference Include="Microsoft.AspNetCore.App" />
  </ItemGroup>

</Project>

csproj文件中加入

<FrameworkReference Include="Microsoft.AspNetCore.App" />

标签:1701,1702,弃用,AspNetCore,8618,enable,Microsoft
From: https://www.cnblogs.com/huanyun/p/18117506

相关文章