Removing NuGetConfig from the first run experience and replacing the sentinel with the FirstUseNoticeSentinel when needed.
This commit is contained in:
parent
529d7caa79
commit
a357fd7bca
15 changed files with 37 additions and 148 deletions
|
@ -128,7 +128,7 @@ namespace Microsoft.DotNet.Cli
|
|||
|
||||
if (telemetryClient == null)
|
||||
{
|
||||
telemetryClient = new Telemetry(nugetCacheSentinel);
|
||||
telemetryClient = new Telemetry(firstTimeUseNoticeSentinel);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -177,18 +177,16 @@ namespace Microsoft.DotNet.Cli
|
|||
var nugetPackagesArchiver = new NuGetPackagesArchiver();
|
||||
var environmentProvider = new EnvironmentProvider();
|
||||
var commandFactory = new DotNetCommandFactory(alwaysRunOutOfProc: true);
|
||||
var nugetConfig = new NuGetConfig(cliFallbackFolderPathCalculator);
|
||||
var nugetCachePrimer = new NuGetCachePrimer(
|
||||
nugetPackagesArchiver,
|
||||
nugetCacheSentinel,
|
||||
nugetConfig,
|
||||
cliFallbackFolderPathCalculator);
|
||||
var dotnetConfigurer = new DotnetFirstTimeUseConfigurer(
|
||||
nugetCachePrimer,
|
||||
nugetCacheSentinel,
|
||||
firstTimeUseNoticeSentinel,
|
||||
environmentProvider,
|
||||
Reporter.Output
|
||||
Reporter.Output,
|
||||
cliFallbackFolderPathCalculator.CliFallbackFolderPath);
|
||||
|
||||
dotnetConfigurer.Configure();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue