我想更新我的程序包,但出现了如下错误:
错误是:

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>
entity-framework-core - 软件包Microsoft.EntityFrameworkCore.Sqlite 5.0.0-rc.1.20451.13与net50(.NETFramework,Version = v5.0)/win7-x86不兼容-LMLPHP

entity-framework-core - 软件包Microsoft.EntityFrameworkCore.Sqlite 5.0.0-rc.1.20451.13与net50(.NETFramework,Version = v5.0)/win7-x86不兼容-LMLPHP
我怎么解决这个问题?

最佳答案

我遇到过同样的问题:
我将Visual Studio程序从 16.7 更新为 16.8 ,现在,问题已解决!
我检查了手动更新
这个解决方案写在这个问题的评论中,但我想成为一个答案,以帮助像我这样的其他人

关于entity-framework-core - 软件包Microsoft.EntityFrameworkCore.Sqlite 5.0.0-rc.1.20451.13与net50(.NETFramework,Version = v5.0)/win7-x86不兼容,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/64144137/

10-13 05:51