本文整理汇总了C#中IVsPackageManagerFactory类的典型用法代码示例。如果您正苦于以下问题:C# IVsPackageManagerFactory类的具体用法?C# IVsPackageManagerFactory怎么用?C# IVsPackageManagerFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IVsPackageManagerFactory类属于命名空间,在下文中一共展示了IVsPackageManagerFactory类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: InstallPackageCommand
internal InstallPackageCommand(
ISolutionManager solutionManager,
IVsPackageManagerFactory packageManagerFactory,
IPackageRepositoryFactory repositoryFactory,
IVsPackageSourceProvider packageSourceProvider,
IHttpClientEvents httpClientEvents,
IProductUpdateService productUpdateService,
IVsCommonOperations vsCommonOperations,
IDeleteOnRestartManager deleteOnRestartManager,
bool networkAvailable)
: base(solutionManager, packageManagerFactory, httpClientEvents, vsCommonOperations, deleteOnRestartManager)
{
_productUpdateService = productUpdateService;
_repositoryFactory = repositoryFactory;
_packageSourceProvider = packageSourceProvider;
DependencyVersion = DependencyVersion.Lowest;
if (networkAvailable)
{
_isNetworkAvailable = isNetworkAvailable();
}
else
{
_isNetworkAvailable = false;
}
}
开发者ID:Berzeger,项目名称:NuGet,代码行数:26,代码来源:InstallPackageCommand.cs
示例2: RecentProvider
public RecentProvider(
Project project,
IPackageRepository localRepository,
ResourceDictionary resources,
IPackageRepositoryFactory packageRepositoryFactory,
IVsPackageManagerFactory packageManagerFactory,
IPackageRepository recentPackagesRepository,
IPackageSourceProvider packageSourceProvider,
ProviderServices providerServices,
IProgressProvider progressProvider,
ISolutionManager solutionManager) :
base(
project,
localRepository,
resources,
packageRepositoryFactory,
null,
packageManagerFactory,
providerServices,
progressProvider,
solutionManager)
{
_recentPackagesRepository = recentPackagesRepository;
_packageManagerFactory = packageManagerFactory;
_packageRepositoryFactory = packageRepositoryFactory;
_packageSourceProvider = packageSourceProvider;
}
开发者ID:monoman,项目名称:NugetCracker,代码行数:28,代码来源:RecentProvider.cs
示例3: PackageRestoreManager
internal PackageRestoreManager(
DTE dte,
ISolutionManager solutionManager,
IFileSystemProvider fileSystemProvider,
IPackageRepositoryFactory packageRepositoryFactory,
IVsPackageSourceProvider packageSourceProvider,
IVsPackageManagerFactory packageManagerFactory,
IVsPackageInstallerEvents packageInstallerEvents,
IPackageRepository localCacheRepository,
IVsThreadedWaitDialogFactory waitDialogFactory,
ISettings settings)
{
Debug.Assert(solutionManager != null);
_dte = dte;
_fileSystemProvider = fileSystemProvider;
_solutionManager = solutionManager;
_packageRepositoryFactory = packageRepositoryFactory;
_packageSourceProvider = packageSourceProvider;
_waitDialogFactory = waitDialogFactory;
_packageManagerFactory = packageManagerFactory;
_localCacheRepository = localCacheRepository;
_settings = settings;
_solutionManager.ProjectAdded += OnProjectAdded;
_solutionManager.SolutionOpened += OnSolutionOpenedOrClosed;
_solutionManager.SolutionClosed += OnSolutionOpenedOrClosed;
packageInstallerEvents.PackageReferenceAdded += OnPackageReferenceAdded;
}
开发者ID:Mailaender,项目名称:xamarin-nuget,代码行数:27,代码来源:PackageRestoreManager.cs
示例4: GetDefaultScaffolderCmdlet
internal GetDefaultScaffolderCmdlet(ISolutionManager solutionManager, IVsPackageManagerFactory packageManagerFactory, IScaffoldingConfigStore configStore)
: base(solutionManager, packageManagerFactory, null)
{
_configStore = new Lazy<IScaffoldingConfigStore>(() => {
return configStore ?? new XmlScaffoldingConfigStore(SolutionManager);
});
}
开发者ID:tikrimi,项目名称:MvcScaffolding4TwitterBootstrapMvc,代码行数:7,代码来源:GetDefaultScaffolderCmdlet.cs
示例5: GetPackageCommand
public GetPackageCommand(IPackageRepositoryFactory repositoryFactory,
IVsPackageSourceProvider packageSourceProvider,
ISolutionManager solutionManager,
IVsPackageManagerFactory packageManagerFactory,
IPackageRepository recentPackagesRepository,
IHttpClientEvents httpClientEvents,
IProductUpdateService productUpdateService)
: base(solutionManager, packageManagerFactory, httpClientEvents)
{
if (repositoryFactory == null)
{
throw new ArgumentNullException("repositoryFactory");
}
if (packageSourceProvider == null)
{
throw new ArgumentNullException("packageSourceProvider");
}
if (recentPackagesRepository == null)
{
throw new ArgumentNullException("recentPackagesRepository");
}
_repositoryFactory = repositoryFactory;
_packageSourceProvider = packageSourceProvider;
_recentPackagesRepository = recentPackagesRepository;
_productUpdateService = productUpdateService;
}
开发者ID:monoman,项目名称:NugetCracker,代码行数:28,代码来源:GetPackageCommand.cs
示例6: VsPackageUninstaller
public VsPackageUninstaller(IVsPackageManagerFactory packageManagerFactory,
IPackageRepository packageRepository,
IScriptExecutor scriptExecutor)
{
_packageManagerFactory = packageManagerFactory;
_scriptExecutor = scriptExecutor;
_packageRepository = packageRepository;
}
开发者ID:xero-github,项目名称:Nuget,代码行数:8,代码来源:VsPackageUninstaller.cs
示例7: UninstallPackageCommand
public UninstallPackageCommand(ISolutionManager solutionManager,
IVsPackageManagerFactory packageManagerFactory,
IHttpClientEvents httpClientEvents,
IVsCommonOperations vsCommonOperations,
IDeleteOnRestartManager deleteOnRestartManager)
: base(solutionManager, packageManagerFactory, httpClientEvents, vsCommonOperations, deleteOnRestartManager)
{
}
开发者ID:njannink,项目名称:sonarlint-vs,代码行数:8,代码来源:UninstallPackageCommand.cs
示例8: VsPackageInstaller
public VsPackageInstaller(IVsPackageManagerFactory packageManagerFactory,
IScriptExecutor scriptExecutor,
IPackageRepositoryFactory repositoryFactory)
{
_packageManagerFactory = packageManagerFactory;
_scriptExecutor = scriptExecutor;
_repositoryFactory = repositoryFactory;
}
开发者ID:monoman,项目名称:NugetCracker,代码行数:8,代码来源:VsPackageInstaller.cs
示例9: GetScaffolderCmdlet
internal GetScaffolderCmdlet(ISolutionManager solutionManager, IVsPackageManagerFactory vsPackageManagerFactory, IScaffolderLocator scaffolderLocator)
: base(solutionManager, vsPackageManagerFactory, null)
{
// Can't read the value of CommandInvoker until *after* the constructor finishes, hence lazy
_scaffolderLocator = new Lazy<IScaffolderLocator>(
() => scaffolderLocator ?? new Ps1ScaffolderLocator(CommandInvoker, PackageManager, null, new DefaultFileSystem(), new XmlScaffoldingConfigStore(SolutionManager))
);
}
开发者ID:processedbeets,项目名称:ASP.NET-MVC-Scaffolding,代码行数:8,代码来源:GetScaffolderCmdlet.cs
示例10: UpdatePackageCommand
public UpdatePackageCommand(ISolutionManager solutionManager,
IVsPackageManagerFactory packageManagerFactory,
IHttpClientEvents httpClientEvents,
IProductUpdateService productUpdateService)
: base(solutionManager, packageManagerFactory, httpClientEvents)
{
_productUpdateService = productUpdateService;
}
开发者ID:larsw,项目名称:nuget,代码行数:8,代码来源:UpdatePackageCommand.cs
示例11: FindPackageCommand
public FindPackageCommand(IPackageRepositoryFactory repositoryFactory,
IVsPackageSourceProvider packageSourceProvider,
ISolutionManager solutionManager,
IVsPackageManagerFactory packageManagerFactory,
IHttpClientEvents httpClientEvents)
: base(repositoryFactory, packageSourceProvider, solutionManager, packageManagerFactory, httpClientEvents, null)
{
}
开发者ID:shrknt35,项目名称:sonarlint-vs,代码行数:9,代码来源:FindPackageCommand.cs
示例12: PackageManagerWindow
private PackageManagerWindow(Project project,
DTE dte,
IVsPackageManagerFactory packageManagerFactory,
IPackageRepositoryFactory repositoryFactory,
IPackageSourceProvider packageSourceProvider,
IRecentPackageRepository recentPackagesRepository,
IHttpClientEvents httpClientEvents,
IProductUpdateService productUpdateService,
IPackageRestoreManager packageRestoreManager,
ISolutionManager solutionManager,
IOptionsPageActivator optionPageActivator)
: base(F1Keyword)
{
InitializeComponent();
#if !VS10
// set unique search guid for VS11
explorer.SearchCategory = new Guid("{85566D5F-E585-411F-B299-5BF006E9F11E}");
#endif
_httpClientEvents = httpClientEvents;
if (_httpClientEvents != null)
{
_httpClientEvents.SendingRequest += OnSendingRequest;
}
_productUpdateService = productUpdateService;
_optionsPageActivator = optionPageActivator;
_activeProject = project;
// replace the ConsoleOutputProvider with SmartOutputConsoleProvider so that we can clear
// the console the first time an entry is written to it
var providerServices = new ProviderServices();
_smartOutputConsoleProvider = new SmartOutputConsoleProvider(providerServices.OutputConsoleProvider);
providerServices.OutputConsoleProvider = _smartOutputConsoleProvider;
_providerSettings = providerServices.ProviderSettings;
AddUpdateBar(productUpdateService);
AddRestoreBar(packageRestoreManager);
InsertDisclaimerElement();
AdjustSortComboBoxWidth();
PreparePrereleaseComboBox();
SetupProviders(
project,
dte,
packageManagerFactory,
repositoryFactory,
packageSourceProvider,
providerServices,
recentPackagesRepository,
httpClientEvents,
solutionManager,
packageRestoreManager);
}
开发者ID:xero-github,项目名称:Nuget,代码行数:56,代码来源:PackageManagerWindow.xaml.cs
示例13: ProcessPackageBaseCommand
protected ProcessPackageBaseCommand(
ISolutionManager solutionManager,
IVsPackageManagerFactory packageManagerFactory,
IHttpClientEvents httpClientEvents,
IVsCommonOperations vsCommonOperations)
: base(solutionManager, packageManagerFactory, httpClientEvents)
{
Debug.Assert(vsCommonOperations != null);
_vsCommonOperations = vsCommonOperations;
}
开发者ID:themotleyfool,项目名称:NuGet,代码行数:10,代码来源:ProcessPackageBaseCommand.cs
示例14: PackageInstallBaseCommand
public PackageInstallBaseCommand(
IVsPackageSourceProvider packageSourceProvider,
IPackageRepositoryFactory packageRepositoryFactory,
SVsServiceProvider svcServiceProvider,
IVsPackageManagerFactory packageManagerFactory,
ISolutionManager solutionManager,
IHttpClientEvents clientEvents)
: base(packageSourceProvider, packageRepositoryFactory, svcServiceProvider, packageManagerFactory, solutionManager, clientEvents, PackageActionType.Install)
{
this.PackageSourceProvider = packageSourceProvider;
}
开发者ID:sistoimenov,项目名称:NuGet2,代码行数:11,代码来源:PackageInstallBaseCommand.cs
示例15: UpdatesProvider
public UpdatesProvider(
Project project,
IProjectManager projectManager,
ResourceDictionary resources,
IPackageRepositoryFactory packageRepositoryFactory,
IPackageSourceProvider packageSourceProvider,
IVsPackageManagerFactory packageManagerFactory,
ProviderServices providerServices,
IProgressProvider progressProvider)
: base(project, projectManager, resources, packageRepositoryFactory, packageSourceProvider, packageManagerFactory, providerServices, progressProvider)
{
}
开发者ID:grendello,项目名称:nuget,代码行数:12,代码来源:UpdatesProvider.cs
示例16: VsPackageManagerContext
public VsPackageManagerContext(
SourceRepositoryManager sourceManager,
SVsServiceProvider serviceProvider,
ISolutionManager solutionManager,
IVsPackageManagerFactory packageManagerFactory)
{
_sourceManager = sourceManager;
_solutionManager = solutionManager;
_packageManagerFactory = packageManagerFactory;
_dte = (EnvDTE._DTE)serviceProvider.GetService(typeof(EnvDTE._DTE));
}
开发者ID:sistoimenov,项目名称:NuGet2,代码行数:12,代码来源:VsPackageManagerContext.cs
示例17: PowerShellHost
protected PowerShellHost(string name, IRunspaceManager runspaceManager)
{
_runspaceManager = runspaceManager;
// TODO: Take these as ctor arguments
_packageSourceProvider = ServiceLocator.GetInstance<IPackageSourceProvider>();
_solutionManager = ServiceLocator.GetInstance<ISolutionManager>();
_packageManagerFactory = ServiceLocator.GetInstance<IVsPackageManagerFactory>();
_name = name;
IsCommandEnabled = true;
}
开发者ID:grendello,项目名称:nuget,代码行数:12,代码来源:PowerShellHost.cs
示例18: VsPackageInstaller
public VsPackageInstaller(IVsPackageManagerFactory packageManagerFactory,
IScriptExecutor scriptExecutor,
IPackageRepositoryFactory repositoryFactory,
IVsCommonOperations vsCommonOperations,
ISolutionManager solutionManager)
{
_packageManagerFactory = packageManagerFactory;
_scriptExecutor = scriptExecutor;
_repositoryFactory = repositoryFactory;
_vsCommonOperations = vsCommonOperations;
_solutionManager = solutionManager;
}
开发者ID:nickfloyd,项目名称:NuGet,代码行数:12,代码来源:VsPackageInstaller.cs
示例19: VsPackageInstaller
/// <summary>
/// Creates an instance of the package installer for unit testing of extension-based preinstalled packages. This should only be used for unit tests.
/// </summary>
/// <param name="vsExtensionManager">A mock extension manager instance (used for unit tests).</param>
internal VsPackageInstaller(IVsPackageManagerFactory packageManagerFactory,
IScriptExecutor scriptExecutor,
IPackageRepositoryFactory repositoryFactory,
IOutputConsoleProvider consoleProvider,
IVsCommonOperations vsCommonOperations,
ISolutionManager solutionManager,
IVsWebsiteHandler websiteHandler,
IVsPackageInstallerServices packageServices,
object vsExtensionManager)
: this(packageManagerFactory, scriptExecutor, repositoryFactory, consoleProvider, vsCommonOperations, solutionManager, websiteHandler, packageServices)
{
_vsExtensionManager = vsExtensionManager;
}
开发者ID:rikoe,项目名称:nuget,代码行数:17,代码来源:VsPackageInstaller.cs
示例20: UpdatePackageCommand
public UpdatePackageCommand(ISolutionManager solutionManager,
IVsPackageManagerFactory packageManagerFactory,
IPackageRepositoryFactory repositoryFactory,
IVsPackageSourceProvider packageSourceProvider,
IHttpClientEvents httpClientEvents,
IProductUpdateService productUpdateService,
IVsCommonOperations vsCommonOperations)
: base(solutionManager, packageManagerFactory, httpClientEvents, vsCommonOperations)
{
_repositoryFactory = repositoryFactory;
_packageSourceProvider = packageSourceProvider;
_productUpdateService = productUpdateService;
}
开发者ID:xero-github,项目名称:Nuget,代码行数:13,代码来源:UpdatePackageCommand.cs
注:本文中的IVsPackageManagerFactory类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论