❔ What could be causing the following issue (Method not found):

Method not found: 'System.Collections.Generic.IList`1<Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention> Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet.get_ModelFinalizingConventions()'.
4 Replies
hulton fogan
hulton fogan2y ago
This issue appears when I try to do dotnet ef database update
Estal
Estal2y ago
Is it reliant on a Nugent Package? I'm finding something similar, but not exact where they needed the package from
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
and had to add the following usings to their directive
using System.Reflection;
using Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation;
using Microsoft.Extensions.FileProviders;
using System.Reflection;
using Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation;
using Microsoft.Extensions.FileProviders;
hulton fogan
hulton fogan2y ago
I managed to resolve this issue, but I don't think the thing that resolved mine will apply to you unfortunately - I somehow installed Microsoft.EntityFrameworkCore even though I already had it installed, I uninstalled the duplicate package in NuGet and it worked
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.