Adding the configurer to dotnet.

This commit is contained in:
Livar Cunha 2016-06-06 15:41:14 -07:00
parent 461c26b78d
commit 4c5f097d67
6 changed files with 39 additions and 8 deletions

View file

@ -8,6 +8,7 @@ using System.Linq;
using System.Runtime.Loader;
using System.Text;
using Microsoft.DotNet.Cli.Utils;
using Microsoft.DotNet.Configurer;
using Microsoft.DotNet.InternalAbstractions;
using Microsoft.DotNet.ProjectModel.Server;
using Microsoft.DotNet.Tools.Build;
@ -56,6 +57,14 @@ 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();
return ProcessArgs(args, new Telemetry());
}
}