public DotNetCorePlatform( IDotNetCoreVersionProvider versionProvider, IAspNetCoreWebAppProjectFileProvider aspNetCoreWebAppProjectFileProvider, IEnvironmentSettingsProvider environmentSettingsProvider, ILogger <DotNetCorePlatform> logger, DotNetCoreLanguageDetector detector, IOptions <DotNetCoreScriptGeneratorOptions> options) { _versionProvider = versionProvider; _aspNetCoreWebAppProjectFileProvider = aspNetCoreWebAppProjectFileProvider; _environmentSettingsProvider = environmentSettingsProvider; _logger = logger; _detector = detector; _options = options.Value; }
public DotNetCorePlatform( IDotNetCoreVersionProvider versionProvider, DefaultProjectFileProvider projectFileProvider, IEnvironmentSettingsProvider environmentSettingsProvider, ILogger <DotNetCorePlatform> logger, DotNetCoreLanguageDetector detector, IOptions <BuildScriptGeneratorOptions> buildOptions, IOptions <DotNetCoreScriptGeneratorOptions> dotNetCorePlatformOptions) { _versionProvider = versionProvider; _projectFileProvider = projectFileProvider; _environmentSettingsProvider = environmentSettingsProvider; _logger = logger; _detector = detector; _dotNetCorePlatformOptions = dotNetCorePlatformOptions.Value; _buildOptions = buildOptions.Value; }
/// <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; }