Ejemplo n.º 1
0
 public DefaultAspNetCoreWebAppProjectFileProvider(
     IOptions <DotNetCoreScriptGeneratorOptions> options,
     ILogger <DefaultAspNetCoreWebAppProjectFileProvider> logger)
 {
     _options = options.Value;
     _logger  = logger;
 }
Ejemplo n.º 2
0
 public ExplicitProjectFileProvider(
     IOptions <DotNetCoreScriptGeneratorOptions> options,
     ILogger <ExplicitProjectFileProvider> logger)
 {
     _options = options.Value;
     _logger  = logger;
 }
Ejemplo n.º 3
0
 public DotNetCorePlatformDetector(
     IDotNetCoreVersionProvider versionProvider,
     IOptions <DotNetCoreScriptGeneratorOptions> options,
     DefaultProjectFileProvider projectFileProvider,
     ILogger <DotNetCorePlatformDetector> logger)
 {
     _versionProvider     = versionProvider;
     _options             = options.Value;
     _projectFileProvider = projectFileProvider;
     _logger = logger;
 }
Ejemplo n.º 4
0
 public DotNetCoreLanguageDetector(
     IDotNetCoreVersionProvider versionProvider,
     IOptions <DotNetCoreScriptGeneratorOptions> options,
     IAspNetCoreWebAppProjectFileProvider aspNetCoreWebAppProjectFileProvider,
     ILogger <DotNetCoreLanguageDetector> logger)
 {
     _versionProvider        = versionProvider;
     _scriptGeneratorOptions = options.Value;
     _aspNetCoreWebAppProjectFileProvider = aspNetCoreWebAppProjectFileProvider;
     _logger = logger;
 }
Ejemplo n.º 5
0
 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;
 }
Ejemplo n.º 6
0
 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;
 }
Ejemplo n.º 7
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)
 {
     _versionProvider = versionProvider;
     _logger          = logger;
     _detector        = detector;
     _dotNetCoreScriptGeneratorOptions = dotNetCoreScriptGeneratorOptions.Value;
     _commonOptions         = commonOptions.Value;
     _platformInstaller     = platformInstaller;
     _globalJsonSdkResolver = globalJsonSdkResolver;
 }
Ejemplo n.º 8
0
 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;
 }
Ejemplo n.º 9
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;
 }
Ejemplo n.º 10
0
 public DotNetCoreVersionProvider(IOptions <DotNetCoreScriptGeneratorOptions> options)
 {
     _options = options.Value;
 }