private ICommandResolver GetProjectDependenciesCommandResolver() { var environment = new EnvironmentProvider(); var packagedCommandSpecFactory = new PackagedCommandSpecFactory(); return(new ProjectDependenciesCommandResolver(environment, packagedCommandSpecFactory)); }
public static CompositeCommandResolver Create() { var environment = new EnvironmentProvider(); var packagedCommandSpecFactory = new PackagedCommandSpecFactory(); var platformCommandSpecFactory = default(IPlatformCommandSpecFactory); if (RuntimeEnvironment.OperatingSystemPlatform == Platform.Windows) { platformCommandSpecFactory = new WindowsExePreferredCommandSpecFactory(); } else { platformCommandSpecFactory = new GenericPlatformCommandSpecFactory(); } return CreateDefaultCommandResolver(environment, packagedCommandSpecFactory, platformCommandSpecFactory); }
public static CompositeCommandResolver Create() { var environment = new EnvironmentProvider(); var packagedCommandSpecFactory = new PackagedCommandSpecFactory(); var platformCommandSpecFactory = default(IPlatformCommandSpecFactory); if (PlatformServices.Default.Runtime.OperatingSystemPlatform == Platform.Windows) { platformCommandSpecFactory = new WindowsExePreferredCommandSpecFactory(); } else { platformCommandSpecFactory = new GenericPlatformCommandSpecFactory(); } return(CreateDefaultCommandResolver(environment, packagedCommandSpecFactory, platformCommandSpecFactory)); }
private ICommandResolver GetProjectDependenciesCommandResolver(NuGetFramework framework) { var environment = new EnvironmentProvider(); if (framework.IsDesktop()) { IPlatformCommandSpecFactory platformCommandSpecFactory = null; if (RuntimeEnvironment.OperatingSystemPlatform == Platform.Windows) { platformCommandSpecFactory = new WindowsExePreferredCommandSpecFactory(); } else { platformCommandSpecFactory = new GenericPlatformCommandSpecFactory(); } return(new OutputPathCommandResolver(environment, platformCommandSpecFactory)); } else { var packagedCommandSpecFactory = new PackagedCommandSpecFactory(); return(new ProjectDependenciesCommandResolver(environment, packagedCommandSpecFactory)); } }
private ICommandResolver GetProjectDependenciesCommandResolver() { var environment = new EnvironmentProvider(); var packagedCommandSpecFactory = new PackagedCommandSpecFactory(); return new ProjectDependenciesCommandResolver(environment, packagedCommandSpecFactory); }
private ICommandResolver GetProjectDependenciesCommandResolver(NuGetFramework framework) { var environment = new EnvironmentProvider(); if (framework.IsDesktop()) { IPlatformCommandSpecFactory platformCommandSpecFactory = null; if (RuntimeEnvironment.OperatingSystemPlatform == Platform.Windows) { platformCommandSpecFactory = new WindowsExePreferredCommandSpecFactory(); } else { platformCommandSpecFactory = new GenericPlatformCommandSpecFactory(); } return new OutputPathCommandResolver(environment, platformCommandSpecFactory); } else { var packagedCommandSpecFactory = new PackagedCommandSpecFactory(); return new ProjectDependenciesCommandResolver(environment, packagedCommandSpecFactory); } }