diff --git a/build/DependencyVersions.props b/build/DependencyVersions.props index f962b799d..5b1915c40 100644 --- a/build/DependencyVersions.props +++ b/build/DependencyVersions.props @@ -9,13 +9,13 @@ 2.0.0-preview2-20170531-2 4.3.0-preview1-2500 2.0.0-rel-20170518-512 - 15.3.0-preview-20170502-03 + 15.3.0-preview-20170601-03 $(CLI_SharedFrameworkVersion) $(CLI_SharedFrameworkVersion) $(CLI_SharedFrameworkVersion) - 1.0.0-beta2-20170523-241 - 1.0.0-beta2-20170526-244 - 1.0.0-beta2-20170526-244 + 1.0.0-beta2-20170531-247 + 1.0.0-beta2-20170531-247 + 1.0.0-beta2-20170531-247 2.0.0-preview2-25331-01 2.0.0-preview2-25331-01 0.1.0-alpha-142 @@ -24,8 +24,8 @@ timestamped - dev-128 - preview2-25179 + dev-134 + preview2-25332 diff --git a/src/dotnet/commands/dotnet-new/NewCommandShim.cs b/src/dotnet/commands/dotnet-new/NewCommandShim.cs index 7dea29376..86f7b1574 100644 --- a/src/dotnet/commands/dotnet-new/NewCommandShim.cs +++ b/src/dotnet/commands/dotnet-new/NewCommandShim.cs @@ -31,13 +31,18 @@ namespace Microsoft.DotNet.Tools.New var sessionId = Environment.GetEnvironmentVariable(MSBuildForwardingApp.TelemetrySessionIdEnvironmentVariableName); var telemetry = new Telemetry(new NuGetCacheSentinel(new CliFallbackFolderPathCalculator()), sessionId); var logger = new TelemetryLogger(null); - //(name, props, measures) => - //{ - // if (telemetry.Enabled) - // { - // telemetry.TrackEvent(name, props, measures); - // } - //}); + + if (telemetry.Enabled) + { + logger = new TelemetryLogger((name, props, measures) => + { + if (telemetry.Enabled) + { + telemetry.TrackEvent(name, props, measures); + } + }); + } + return New3Command.Run(CommandName, CreateHost(), logger, FirstRun, args); }