1 implementation of GetProjectsWithInstalledPackage
Microsoft.VisualStudio.LanguageServices (1)
Packaging\PackageInstallerServiceFactory.cs (1)
658public ImmutableArray<Project> GetProjectsWithInstalledPackage(Solution solution, string packageName, string version)
8 references to GetProjectsWithInstalledPackage
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
AddUsing\AddUsingNuGetTests.cs (4)
210installerServiceMock.Setup(i => i.GetProjectsWithInstalledPackage(It.IsAny<Solution>(), "NuGetPackage", "1.0")).Returns(ImmutableArray<Project>.Empty); 211installerServiceMock.Setup(i => i.GetProjectsWithInstalledPackage(It.IsAny<Solution>(), "NuGetPackage", "2.0")).Returns(ImmutableArray<Project>.Empty); 287installerServiceMock.Setup(i => i.GetProjectsWithInstalledPackage(It.IsAny<Solution>(), "NuGetPackage", "1.0")).Returns(ImmutableArray<Project>.Empty); 320installerServiceMock.Setup(i => i.GetProjectsWithInstalledPackage(It.IsAny<Solution>(), "NuGetPackage", "1.0")).Returns(ImmutableArray<Project>.Empty);
Microsoft.CodeAnalysis.Features (1)
AddPackage\InstallPackageDirectlyCodeActionOperation.cs (1)
54var otherProjects = installerService.GetProjectsWithInstalledPackage(
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (3)
Diagnostics\AddImport\AddImportTests_NuGet.vb (3)
160installerServiceMock.Setup(Function(i) i.GetProjectsWithInstalledPackage(It.IsAny(Of Solution), "NuGetPackage", "1.0")).Returns(ImmutableArray(Of Project).Empty) 161installerServiceMock.Setup(Function(i) i.GetProjectsWithInstalledPackage(It.IsAny(Of Solution), "NuGetPackage", "2.0")).Returns(ImmutableArray(Of Project).Empty) 233installerServiceMock.Setup(Function(i) i.GetProjectsWithInstalledPackage(It.IsAny(Of Solution), "NuGetPackage", "1.0")).Returns(ImmutableArray(Of Project).Empty)