예제 #1
0
        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());
        }
예제 #2
0
 public static ICollection <IPackage> NugetifyReferencesInProject(ProjectNugetifier nugetifier)
 {
     return(nugetifier.NugetifyReferences(GetMockDirectory()).ToArray());
 }