我想更新我的软件包,但是出现了以下错误:
错误信息如下:
Error NU1202 包 Microsoft.EntityFrameworkCore.Sqlite 5.0.0-rc.1.20451.13 与 net50 (.NETFramework,Version=v5.0) / win7-x86 不兼容。 包 Microsoft.EntityFrameworkCore.Sqlite 5.0.0-rc.1.20451.13 支持: netstandard2.1 (.NETStandard,Version=v2.1) API E:...\API\API.csproj 1
API.csproj 文件:
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="8.0.1" />
<PackageReference Include="CloudinaryDotNet" Version="1.11.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="3.1.7" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="5.0.0-preview.8.20414.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.0-preview.8.20407.4">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="5.0.0-preview.8.20407.4" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="5.0.0-preview8" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.7.1" />
</ItemGroup>
</Project>
C:\WINDOWS\system32>dotnet --info .NET SDK(反映任何全局.json):
版本:5.0.100-rc.1.20452.10
提交:473d1b592e运行时环境:
操作系统名称:Windows
操作系统版本:10.0.17763 操作系统平台:Windows
RID:win10-x64
基本路径:C:\Program Files\dotnet\sdk\5.0.100-rc.1.20452.10\
我该如何解决这个问题?