public static List <IPackage> AddReferenceMetadata(ProjectNugetifier nugetifier, Mock <ISharedPackageRepository> repositoriesConfig = null, DirectoryInfo solutionDir = null, FrameworkName targetFrameWork = null) { var sharedPackageRepository = repositoriesConfig ?? new Mock <ISharedPackageRepository>(); solutionDir = solutionDir ?? GetMockDirectory(); var packages = nugetifier.NugetifyReferences(solutionDir); nugetifier.AddNugetReferenceMetadata(sharedPackageRepository.Object, packages, targetFrameWork); return(packages.ToList()); }
public static ICollection <IPackage> NugetifyReferencesInProject(ProjectNugetifier nugetifier) { return(nugetifier.NugetifyReferences(GetMockDirectory()).ToArray()); }