Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

237
Views
Método no encontrado: 'System.Object Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable.get_Item(System.String)'

Estoy usando C# y quiero Add-Migration InitialVersion pero tengo un problema:

Method not found: 'System.Object Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable.get_Item(System.String)'

Paquetes Nuget que uso:

 <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net5.0</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.0-preview.2.21154.2" /> <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.0-preview.2.21154.2"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> </PackageReference> <PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="5.0.0-alpha.2" /> </ItemGroup> </Project>
over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Rebaje Microsoft.EntityFrameworkCore y Microsoft.EntityFrameworkCore.Tools a la quinta versión más reciente. Puede hacerlo a través de dotnet CLI usando el siguiente comando:

 dotnet add package Microsoft.EntityFrameworkCore --version 5.0.4 dotnet add package Microsoft.EntityFrameworkCore.Tools --version 5.0.4

La string de aceptación del indexador se eliminó de IAnnotatable en la sexta versión preliminar .

over 4 years ago · Santiago Trujillo Report

0

Otra opción es actualizar dotnet-ef a la misma versión que tiene en su proyecto

 dotnet tool update --global dotnet-ef --version 6.0.0-preview.2.21154.2
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!