/// <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) { _versionProvider = versionProvider; _logger = logger; _detector = detector; _dotNetCoreScriptGeneratorOptions = dotNetCoreScriptGeneratorOptions.Value; _commonOptions = commonOptions.Value; _platformInstaller = platformInstaller; _globalJsonSdkResolver = globalJsonSdkResolver; }
/// <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, DotNetCorePlatformDetector detector, IOptions <BuildScriptGeneratorOptions> cliOptions, IOptions <DotNetCoreScriptGeneratorOptions> dotNetCoreScriptGeneratorOptions, IEnvironment environment, DotNetCorePlatformInstaller platformInstaller, GlobalJsonSdkResolver globalJsonSdkResolver) { _versionProvider = versionProvider; _projectFileProvider = projectFileProvider; _logger = logger; _detector = detector; _dotNetCoreScriptGeneratorOptions = dotNetCoreScriptGeneratorOptions.Value; _cliOptions = cliOptions.Value; _environment = environment; _platformInstaller = platformInstaller; _globalJsonSdkResolver = globalJsonSdkResolver; }