Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DotNetCorePlatform"/> class.
 /// </summary>
 /// <param name="versionProvider">The .NET version provider.</param>
 /// <param name="logger">The logger of .NET platform.</param>
 /// <param name="detector">The detector of .NET platform.</param>
 /// <param name="commonOptions">The build options for BuildScriptGenerator.</param>
 /// <param name="dotNetCoreScriptGeneratorOptions">The options if .NET platform.</param>
 /// <param name="platformInstaller">The <see cref="DotNetCorePlatformInstaller"/>.</param>
 /// <param name="globalJsonSdkResolver">The <see cref="GlobalJsonSdkResolver"/>.</param>
 public DotNetCorePlatform(
     IDotNetCoreVersionProvider versionProvider,
     ILogger <DotNetCorePlatform> logger,
     IDotNetCorePlatformDetector detector,
     IOptions <BuildScriptGeneratorOptions> commonOptions,
     IOptions <DotNetCoreScriptGeneratorOptions> dotNetCoreScriptGeneratorOptions,
     DotNetCorePlatformInstaller platformInstaller,
     GlobalJsonSdkResolver globalJsonSdkResolver)
 {
     this.versionProvider = versionProvider;
     this.logger          = logger;
     this.detector        = detector;
     this.dotNetCoreScriptGeneratorOptions = dotNetCoreScriptGeneratorOptions.Value;
     this.commonOptions         = commonOptions.Value;
     this.platformInstaller     = platformInstaller;
     this.globalJsonSdkResolver = globalJsonSdkResolver;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DotNetCorePlatform"/> class.
 /// </summary>
 /// <param name="versionProvider">The .NET version provider.</param>
 /// <param name="projectFileProvider">The project file provider.</param>
 /// <param name="environmentSettingsProvider">The environment settings provider.</param>
 /// <param name="logger">The logger of .NET platform.</param>
 /// <param name="detector">The detector of .NET platform.</param>
 /// <param name="cliOptions">The build options for BuildScriptGenerator.</param>
 /// <param name="dotNetCoreScriptGeneratorOptions">The options if .NET platform.</param>
 /// <param name="platformInstaller">The <see cref="DotNetCorePlatformInstaller"/>.</param>
 public DotNetCorePlatform(
     IDotNetCoreVersionProvider versionProvider,
     DefaultProjectFileProvider projectFileProvider,
     ILogger <DotNetCorePlatform> logger,
     DotNetCoreLanguageDetector detector,
     IOptions <BuildScriptGeneratorOptions> cliOptions,
     IOptions <DotNetCoreScriptGeneratorOptions> dotNetCoreScriptGeneratorOptions,
     IEnvironment environment,
     DotNetCorePlatformInstaller platformInstaller)
 {
     _versionProvider     = versionProvider;
     _projectFileProvider = projectFileProvider;
     _logger   = logger;
     _detector = detector;
     _dotNetCoreScriptGeneratorOptions = dotNetCoreScriptGeneratorOptions.Value;
     _cliOptions        = cliOptions.Value;
     _environment       = environment;
     _platformInstaller = platformInstaller;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DotNetCorePlatform"/> class.
 /// </summary>
 /// <param name="versionProvider">The .NET version provider.</param>
 /// <param name="projectFileProvider">The project file provider.</param>
 /// <param name="environmentSettingsProvider">The environment settings provider.</param>
 /// <param name="logger">The logger of .NET platform.</param>
 /// <param name="detector">The detector of .NET platform.</param>
 /// <param name="commonOptions">The build options for BuildScriptGenerator.</param>
 /// <param name="dotNetCoreScriptGeneratorOptions">The options if .NET platform.</param>
 /// <param name="platformInstaller">The <see cref="DotNetCorePlatformInstaller"/>.</param>
 /// <param name="globalJsonSdkResolver">The <see cref="GlobalJsonSdkResolver"/>.</param>
 public DotNetCorePlatform(
     IDotNetCoreVersionProvider versionProvider,
     DefaultProjectFileProvider projectFileProvider,
     ILogger <DotNetCorePlatform> logger,
     DotNetCorePlatformDetector detector,
     IOptions <BuildScriptGeneratorOptions> commonOptions,
     IOptions <DotNetCoreScriptGeneratorOptions> dotNetCoreScriptGeneratorOptions,
     DotNetCorePlatformInstaller platformInstaller,
     GlobalJsonSdkResolver globalJsonSdkResolver)
 {
     _versionProvider     = versionProvider;
     _projectFileProvider = projectFileProvider;
     _logger   = logger;
     _detector = detector;
     _dotNetCoreScriptGeneratorOptions = dotNetCoreScriptGeneratorOptions.Value;
     _commonOptions         = commonOptions.Value;
     _platformInstaller     = platformInstaller;
     _globalJsonSdkResolver = globalJsonSdkResolver;
 }