Adding the code to extract the archive in the first use of dotnet an
d added the first time use welcome text as well as some E2E tests.
This commit is contained in:
parent
5f220a1677
commit
69f43beccd
11 changed files with 222 additions and 42 deletions
|
@ -57,13 +57,7 @@ namespace Microsoft.DotNet.Cli
|
|||
{
|
||||
using (PerfTrace.Current.CaptureTiming())
|
||||
{
|
||||
var nugetCacheSentinel = new NuGetCacheSentinel();
|
||||
var nugetPackagesArchiver = new NuGetPackagesArchiver();
|
||||
var commandFactory = new DotNetCommandFactory();
|
||||
var nugetCachePrimer = new NuGetCachePrimer(commandFactory, nugetPackagesArchiver, nugetCacheSentinel);
|
||||
var dotnetConfigurer = new DotnetFirstTimeUseConfigurer(nugetCachePrimer, nugetCacheSentinel);
|
||||
|
||||
dotnetConfigurer.Configure();
|
||||
ConfigureDotNetForFirstTimeUse();
|
||||
|
||||
return ProcessArgs(args, new Telemetry());
|
||||
}
|
||||
|
@ -166,6 +160,18 @@ namespace Microsoft.DotNet.Cli
|
|||
|
||||
}
|
||||
|
||||
private static void ConfigureDotNetForFirstTimeUse()
|
||||
{
|
||||
using (var nugetPackagesArchiver = new NuGetPackagesArchiver())
|
||||
{
|
||||
var nugetCacheSentinel = new NuGetCacheSentinel();
|
||||
var commandFactory = new DotNetCommandFactory();
|
||||
var nugetCachePrimer = new NuGetCachePrimer(commandFactory, nugetPackagesArchiver, nugetCacheSentinel);
|
||||
var dotnetConfigurer = new DotnetFirstTimeUseConfigurer(nugetCachePrimer, nugetCacheSentinel);
|
||||
|
||||
dotnetConfigurer.Configure();
|
||||
}
|
||||
}
|
||||
|
||||
private static void InitializeProcess()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue