• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IPackagePathResolver类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IPackagePathResolver的典型用法代码示例。如果您正苦于以下问题:C# IPackagePathResolver类的具体用法?C# IPackagePathResolver怎么用?C# IPackagePathResolver使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IPackagePathResolver类属于命名空间,在下文中一共展示了IPackagePathResolver类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: CreateSharedRepository

		public ISharedPackageRepository CreateSharedRepository(
			IPackagePathResolver pathResolver,
			IFileSystem fileSystem,
			IFileSystem configSettingsFileSystem)
		{
			return new SharedPackageRepository(pathResolver, fileSystem, configSettingsFileSystem);
		}
开发者ID:rbrunhuber,项目名称:SharpDevelop,代码行数:7,代码来源:SharpDevelopPackageRepositoryFactory.cs


示例2: CreateSharedRepository

		public ISharedPackageRepository CreateSharedRepository(IPackagePathResolver pathResolver, IFileSystem fileSystem, IFileSystem configSettingsFileSystem)
		{
			PathResolverPassedToCreateSharedRepository = pathResolver;
			FileSystemPassedToCreateSharedRepository = fileSystem;
			ConfigSettingsFileSystemPassedToCreateSharedRepository = configSettingsFileSystem;
			return FakeSharedRepository;
		}
开发者ID:Rpinski,项目名称:SharpDevelop,代码行数:7,代码来源:FakePackageRepositoryFactory.cs


示例3: PackageManager

        public PackageManager(
            IPackageRepository sourceRepository, 
            IPackagePathResolver pathResolver, 
            IFileSystem fileSystem, 
            ISharedPackageRepository localRepository)
        {
            if (sourceRepository == null)
            {
                throw new ArgumentNullException("sourceRepository");
            }
            if (pathResolver == null)
            {
                throw new ArgumentNullException("pathResolver");
            }
            if (fileSystem == null)
            {
                throw new ArgumentNullException("fileSystem");
            }
            if (localRepository == null)
            {
                throw new ArgumentNullException("localRepository");
            }

            SourceRepository = sourceRepository;
            DependencyResolver = new DependencyResolverFromRepo(sourceRepository);
            PathResolver = pathResolver;
            FileSystem = fileSystem;
            LocalRepository = localRepository;
            DependencyVersion = DependencyVersion.Lowest;
            CheckDowngrade = true;
        }
开发者ID:sistoimenov,项目名称:NuGet2,代码行数:31,代码来源:PackageManager.cs


示例4: SharpDevelopProjectManager

		public SharpDevelopProjectManager(IPackageRepository sourceRepository,
			IPackagePathResolver pathResolver,
			IProjectSystem project,
			IPackageRepository localRepository)
			: base(sourceRepository, pathResolver, project, localRepository)
		{
		}
开发者ID:kleinux,项目名称:SharpDevelop,代码行数:7,代码来源:SharpDevelopProjectManager.cs


示例5: GetLocalRepository

        public static IPackageRepository GetLocalRepository(IPackagePathResolver pathResolver, IFileSystem nugetPackagesFileSystem)
        {
            IPackageRepository localRepository = new ChocolateyLocalPackageRepository(pathResolver, nugetPackagesFileSystem);
            localRepository.PackageSaveMode = PackageSaveModes.Nupkg;

            return localRepository;
        }
开发者ID:shrknt35,项目名称:sonarlint-vs,代码行数:7,代码来源:NugetCommon.cs


示例6: Ps1ScaffolderLocator

 public Ps1ScaffolderLocator(IPowershellCommandInvoker commandInvoker, IPackageManager packageManager, IPackagePathResolver pathResolver, FileSystem.IFileSystem fileSystem, IScaffoldingConfigStore configStore)
 {
     _commandInvoker = commandInvoker;
     _packageManager = packageManager;
     _pathResolver = pathResolver ?? packageManager.PathResolver;
     _fileSystem = fileSystem;
     _configStore = configStore;
 }
开发者ID:processedbeets,项目名称:ASP.NET-MVC-Scaffolding,代码行数:8,代码来源:Ps1ScaffolderLocator.cs


示例7: VsProjectManager

 public VsProjectManager(
     VsPackageManager packageManager, 
     IPackagePathResolver pathResolver, 
     IProjectSystem project, 
     IPackageRepository localRepository)
     : base(packageManager, pathResolver, project, localRepository)
 {
     _packageManager = packageManager;
 }
开发者ID:rikoe,项目名称:nuget,代码行数:9,代码来源:VsProjectManager.cs


示例8: SharedPackageRepository

        public SharedPackageRepository(IPackagePathResolver resolver, IFileSystem fileSystem, IFileSystem configSettingsFileSystem)
            : base(resolver, fileSystem)
        {
            if (configSettingsFileSystem == null)
            {
                throw new ArgumentNullException("configSettingsFileSystem");
            }

            _packageReferenceFile = new PackageReferenceFile(configSettingsFileSystem, Constants.PackageReferenceFile);
        }
开发者ID:xero-github,项目名称:Nuget,代码行数:10,代码来源:SharedPackageRepository.cs


示例9: SharpDevelopPackageManager

		public SharpDevelopPackageManager(
			IPackageRepository sourceRepository,
			IProjectSystem projectSystem,
			IFileSystem fileSystem,
			ISharedPackageRepository localRepository,
			IPackagePathResolver pathResolver)
			: base(
				sourceRepository,
				pathResolver,
				fileSystem,
				localRepository)
		{
			this.projectSystem = projectSystem;
			CreateProjectManager();
		}
开发者ID:kleinux,项目名称:SharpDevelop,代码行数:15,代码来源:SharpDevelopPackageManager.cs


示例10: ServerPackageRepository

        public ServerPackageRepository(IPackagePathResolver pathResolver, IFileSystem fileSystem)
        {
            if (pathResolver == null)
            {
                throw new ArgumentNullException("pathResolver");
            }

            if (fileSystem == null)
            {
                throw new ArgumentNullException("fileSystem");
            }

            _fileSystem = fileSystem;
            _pathResolver = pathResolver;
        }
开发者ID:aaasoft,项目名称:NuGet.Server,代码行数:15,代码来源:ServerPackageRepository.cs


示例11: LocalPackageRepository

        public LocalPackageRepository(IPackagePathResolver pathResolver, IFileSystem fileSystem, bool enableCaching)
        {
            if (pathResolver == null)
            {
                throw new ArgumentNullException("pathResolver");
            }

            if (fileSystem == null)
            {
                throw new ArgumentNullException("fileSystem");
            }

            FileSystem = fileSystem;
            PathResolver = pathResolver;
            _enableCaching = enableCaching;
        }
开发者ID:Newtopian,项目名称:nuget,代码行数:16,代码来源:LocalPackageRepository.cs


示例12: ServerPackageRepository

        public ServerPackageRepository(IPackagePathResolver pathResolver, IFileSystem fileSystem, Func<string, bool, bool> getSetting = null)
        {
            if (pathResolver == null)
            {
                throw new ArgumentNullException("pathResolver");
            }

            if (fileSystem == null)
            {
                throw new ArgumentNullException("fileSystem");
            }

            _fileSystem = fileSystem;
            _pathResolver = pathResolver;
            _getSetting = getSetting ?? GetBooleanAppSetting;
        }
开发者ID:jholovacs,项目名称:NuGet,代码行数:16,代码来源:ServerPackageRepository.cs


示例13: CreateLockFileLibrary

        public static LockFileLibrary CreateLockFileLibrary(LockFileLibrary previousLibrary, IPackagePathResolver resolver, IPackage package, string correctedPackageName = null)
        {
            var lockFileLib = new LockFileLibrary();

            // package.Id is read from nuspec and it might be in wrong casing.
            // correctedPackageName should be the package name used by dependency graph and
            // it has the correct casing that runtime needs during dependency resolution.
            lockFileLib.Name = correctedPackageName ?? package.Id;
            lockFileLib.Version = package.Version;
            lockFileLib.Sha512 = File.ReadAllText(resolver.GetHashPath(package.Id, package.Version));

            // If the shas are equal then do nothing
            if (previousLibrary?.Sha512 == lockFileLib.Sha512)
            {
                lockFileLib.Files = previousLibrary.Files;
                lockFileLib.IsServiceable = previousLibrary.IsServiceable;
            }
            else
            {
                lockFileLib.Files = package.GetFiles().Select(p => p.Path).ToList();
                var installPath = resolver.GetInstallPath(package.Id, package.Version);
                foreach (var filePath in lockFileLib.Files)
                {
                    if (!string.Equals(Path.GetExtension(filePath), ".dll", StringComparison.OrdinalIgnoreCase))
                    {
                        continue;
                    }

                    var assemblyPath = Path.Combine(installPath, filePath);
                    try
                    {
                        if (IsAssemblyServiceable(assemblyPath))
                        {
                            lockFileLib.IsServiceable = true;
                            break;
                        }
                    }
                    catch
                    {
                        // Just move on to the next file
                    }
                }
            }

            return lockFileLib;
        }
开发者ID:noahfalk,项目名称:dnx,代码行数:46,代码来源:LockFileUtils.cs


示例14: LocalPackageRepository

        public LocalPackageRepository(IPackagePathResolver pathResolver, IFileSystem fileSystem, IReport report, bool enableCaching)
        {
            if (pathResolver == null)
            {
                throw new ArgumentNullException(nameof(pathResolver));
            }

            if (fileSystem == null)
            {
                throw new ArgumentNullException(nameof(fileSystem));
            }

            FileSystem = fileSystem;
            PathResolver = pathResolver;
            _enableCaching = enableCaching;
            _report = report;
        }
开发者ID:elanwu123,项目名称:dnx,代码行数:17,代码来源:LocalPackageRepository.cs


示例15: PackageManager

        public PackageManager(IPackageRepository sourceRepository, IPackagePathResolver pathResolver, IFileSystem fileSystem, IPackageRepository localRepository)
        {
            if (sourceRepository == null) {
                throw new ArgumentNullException("sourceRepository");
            }
            if (pathResolver == null) {
                throw new ArgumentNullException("pathResolver");
            }
            if (fileSystem == null) {
                throw new ArgumentNullException("fileSystem");
            }
            if (localRepository == null) {
                throw new ArgumentNullException("localRepository");
            }

            SourceRepository = sourceRepository;
            PathResolver = pathResolver;
            FileSystem = fileSystem;
            LocalRepository = localRepository;
        }
开发者ID:jacksonh,项目名称:nuget,代码行数:20,代码来源:PackageManager.cs


示例16: UnzippedPackageRepository

 public UnzippedPackageRepository(IPackagePathResolver pathResolver, IFileSystem fileSystem)
 {
     FileSystem = fileSystem;
     PathResolver = pathResolver;
 }
开发者ID:Newtopian,项目名称:nuget,代码行数:5,代码来源:UnzippedPackageRepository.cs


示例17: MockSharedRepository

 public MockSharedRepository(IPackagePathResolver resolver, IFileSystem fileSystem)
     : base(resolver, fileSystem, new MockFileSystem())
 {
 }
开发者ID:riteshparekh,项目名称:NuGet,代码行数:4,代码来源:SharedPackageRepositoryTest.cs


示例18: SharedPackageRepository

 public SharedPackageRepository(IPackagePathResolver resolver, IFileSystem fileSystem)
     : base(resolver, fileSystem)
 {
 }
开发者ID:jacksonh,项目名称:nuget,代码行数:4,代码来源:SharedPackageRepository.cs


示例19: CreateSharedRepository

		ISharedPackageRepository CreateSharedRepository(IPackagePathResolver pathResolver, IFileSystem fileSystem)
		{
			return packageRepositoryFactory.CreateSharedRepository(pathResolver, fileSystem);
		}
开发者ID:yuriykipnis,项目名称:SharpDevelop,代码行数:4,代码来源:SharpDevelopPackageManagerFactory.cs


示例20: LucenePackageRepository

 public LucenePackageRepository(IPackagePathResolver packageResolver, IFileSystem fileSystem)
     : base(packageResolver, fileSystem)
 {
 }
开发者ID:Pliner,项目名称:NuGet.Lucene,代码行数:4,代码来源:LucenePackageRepository.cs



注:本文中的IPackagePathResolver类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IPackageRepository类代码示例发布时间:2022-05-24
下一篇:
C# IPackageMetadata类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap