示例#1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="NuPlugPackageManager" /> class.
 /// </summary>
 /// <param name="sourceRepository">The source repository</param>
 /// <param name="path">The local package path. Can be relative</param>
 public NuPlugPackageManager(IPackageRepository sourceRepository, string path)
     : this(sourceRepository, new DefaultPackagePathResolver(Assemblies.GetFullPath(path)), new PhysicalFileSystem(Assemblies.GetFullPath(path)))
 {
     CheckDowngrade = false;
 }
示例#2
0
        private static IPackageRepository CreatePackageRepository(string packageSource)
        {
            var safePackageSource = Assemblies.GetFullPath(packageSource);

            return(Factory.CreateRepository(safePackageSource));
        }