Exemple #1
0
 public DotNetCorePlatformDetector(
     DefaultProjectFileProvider projectFileProvider,
     ILogger <DotNetCorePlatformDetector> logger)
 {
     _projectFileProvider = projectFileProvider;
     _logger = logger;
 }
Exemple #2
0
 public DotNetCorePlatformDetector(
     IDotNetCoreVersionProvider versionProvider,
     IOptions <DotNetCoreScriptGeneratorOptions> options,
     DefaultProjectFileProvider projectFileProvider,
     ILogger <DotNetCorePlatformDetector> logger)
 {
     _versionProvider     = versionProvider;
     _options             = options.Value;
     _projectFileProvider = projectFileProvider;
     _logger = logger;
 }
 public DotNetCoreLanguageDetector(
     IDotNetCoreVersionProvider versionProvider,
     IOptions <DotNetCoreScriptGeneratorOptions> options,
     DefaultProjectFileProvider projectFileProvider,
     ILogger <DotNetCoreLanguageDetector> logger,
     IStandardOutputWriter writer)
 {
     _versionProvider     = versionProvider;
     _options             = options.Value;
     _projectFileProvider = projectFileProvider;
     _logger = logger;
     _writer = writer;
 }
Exemple #4
0
 public DotNetCorePlatform(
     IDotNetCoreVersionProvider versionProvider,
     DefaultProjectFileProvider projectFileProvider,
     IEnvironmentSettingsProvider environmentSettingsProvider,
     ILogger <DotNetCorePlatform> logger,
     DotNetCoreLanguageDetector detector,
     IOptions <DotNetCoreScriptGeneratorOptions> options)
 {
     _versionProvider             = versionProvider;
     _projectFileProvider         = projectFileProvider;
     _environmentSettingsProvider = environmentSettingsProvider;
     _logger   = logger;
     _detector = detector;
     _options  = options.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;
 }
 /// <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;
 }