本文整理汇总了C#中IPackageManagementSolution类的典型用法代码示例。如果您正苦于以下问题:C# IPackageManagementSolution类的具体用法?C# IPackageManagementSolution怎么用?C# IPackageManagementSolution使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IPackageManagementSolution类属于命名空间,在下文中一共展示了IPackageManagementSolution类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PackageCompatibilityChecker
public PackageCompatibilityChecker (
IPackageManagementSolution solution,
IRegisteredPackageRepositories registeredRepositories)
{
this.solution = solution;
this.registeredRepositories = registeredRepositories;
}
示例2: NuGetPackageRestoreCommandLine
public NuGetPackageRestoreCommandLine (IPackageManagementSolution solution)
: this (
solution,
MonoRuntimeInfo.FromCurrentRuntime (),
EnvironmentUtility.IsMonoRuntime)
{
}
示例3: CreatePackageInstallerServices
void CreatePackageInstallerServices()
{
fakeSolution = MockRepository.GenerateStub<IPackageManagementSolution>();
installedPackages = new List<IPackage>();
fakeSolution.Stub(s => s.GetPackages()).Return(installedPackages.AsQueryable());
installerServices = new VsPackageInstallerServices(fakeSolution);
}
示例4: CreateUpdatePackageInAllProjects
public IUpdatePackageActions CreateUpdatePackageInAllProjects(
PackageReference packageReference,
IPackageManagementSolution solution,
IPackageRepository sourceRepository)
{
return new UpdatePackageInAllProjects(packageReference, solution, sourceRepository);
}
示例5: UpdateAllPackagesInSolution
public UpdateAllPackagesInSolution(
IPackageManagementSolution solution,
IPackageRepository sourceRepository)
{
this.solution = solution;
this.sourceRepository = sourceRepository;
}
示例6: PackageReinstaller
public PackageReinstaller (
IPackageManagementSolution solution,
IBackgroundPackageActionRunner runner)
{
this.solution = solution;
this.runner = runner;
}
示例7: RestorePackagesCommand
public RestorePackagesCommand(
IPackageManagementOutputMessagesView outputMessagesView,
IPackageManagementSolution solution)
{
this.outputMessagesView = outputMessagesView;
this.solution = solution;
}
示例8: PackageRestoreRunner
internal PackageRestoreRunner (IPackageManagementSolution solution)
: this (
solution,
PackageManagementServices.ProgressMonitorFactory,
PackageManagementServices.PackageManagementEvents,
PackageManagementServices.ProgressProvider)
{
}
示例9: CreateUpdateAllPackagesInSolution
public IUpdatePackageActions CreateUpdateAllPackagesInSolution(
IPackageManagementSolution solution,
IPackageRepository sourceRepository)
{
SolutionPassedToCreateUpdateAllPackagesInSolution = solution;
SourceRepositoryPassedToCreateUpdateAllPackagesInSolution = sourceRepository;
return FakeUpdateAllPackagesInSolution;
}
示例10: RestoreAllPackagesInSolution
public void RestoreAllPackagesInSolution (
IPackageManagementSolution solution,
IEnumerable<DotNetProject> projects,
Action afterRestore)
{
var restorer = new PackageRestorer (solution, projects);
Restore (restorer, afterRestore);
}
示例11: Restore
public static void Restore (
IPackageManagementSolution solution,
IPackageManagementProject project,
Action afterRestore)
{
var runner = new RestoreBeforeUpdateAction ();
runner.RestoreProjectPackages (solution, project.DotNetProject, afterRestore);
}
示例12: UpdateSolutionPackagesAction
public UpdateSolutionPackagesAction(
IPackageManagementSolution solution,
IPackageManagementEvents packageManagementEvents)
{
this.Solution = solution;
this.UpdateDependencies = true;
this.packageManagementEvents = packageManagementEvents;
}
示例13: UpdateAllPackagesInSolution
public UpdateAllPackagesInSolution(
IPackageManagementSolution solution,
IPackageRepository sourceRepository)
{
this.solution = solution;
this.sourceRepository = sourceRepository;
UpdateDependencies = true;
}
示例14: GenerateCommandLine
void GenerateCommandLine(IPackageManagementSolution solution)
{
if (EnvironmentUtility.IsMonoRuntime) {
GenerateMonoCommandLine(solution);
} else {
GenerateWindowsCommandLine(solution);
}
}
示例15: GenerateMonoCommandLine
void GenerateMonoCommandLine(IPackageManagementSolution solution)
{
Arguments = String.Format(
"--runtime=v4.0 \"{0}\" restore \"{1}\"",
NuGetExePath.GetPath(),
solution.FileName);
Command = Path.Combine (monoRuntime.Prefix, "bin", "mono");
}