diff --git a/src/dotnet/Rider.Plugins.EfCore/Compatibility/SupportedStartupProjectsProvider.cs b/src/dotnet/Rider.Plugins.EfCore/Compatibility/SupportedStartupProjectsProvider.cs index 864f2c5..9a22d81 100644 --- a/src/dotnet/Rider.Plugins.EfCore/Compatibility/SupportedStartupProjectsProvider.cs +++ b/src/dotnet/Rider.Plugins.EfCore/Compatibility/SupportedStartupProjectsProvider.cs @@ -45,8 +45,8 @@ public IEnumerable GetSupportedStartupProjects() } private bool StartupProjectPackagesInstalled(IProject project) => - _nugetTracker.HasPackage(project, EfCoreRequiredPackages.EfCoreToolsNugetId) - || _nugetTracker.HasPackage(project, EfCoreRequiredPackages.EfCoreDesignNugetId); + _nugetTracker.HasInstalledPackage(project, EfCoreRequiredPackages.EfCoreToolsNugetId) + || _nugetTracker.HasInstalledPackage(project, EfCoreRequiredPackages.EfCoreDesignNugetId); private IEnumerable GetReferencingProjects(IProject project) => project.TargetFrameworkIds diff --git a/src/dotnet/Rider.Plugins.EfCore/Tracking/NuGetPackageReferenceTrackerEx.cs b/src/dotnet/Rider.Plugins.EfCore/Tracking/NuGetPackageReferenceTrackerEx.cs deleted file mode 100644 index c245bec..0000000 --- a/src/dotnet/Rider.Plugins.EfCore/Tracking/NuGetPackageReferenceTrackerEx.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Linq; -using JetBrains.ProjectModel; -using JetBrains.ProjectModel.NuGet.Packaging; - -namespace Rider.Plugins.EfCore.Tracking -{ - public static class NuGetPackageReferenceTrackerEx - { - /// - /// TODO: This is a temporary method that is used as a replacement of that works incorrectly. - /// - public static bool HasPackage(this NuGetPackageReferenceTracker tracker, IProject project, string packageId) => - tracker.GetInstalledPackages(project) - .Any(x => string.Equals(x.PackageIdentity.Id, packageId, StringComparison.OrdinalIgnoreCase)); - } -}