From d7c78a093f04ed1919e431d328f0161a4b963311 Mon Sep 17 00:00:00 2001 From: Oren Novotny Date: Sat, 10 Aug 2019 10:28:12 -0400 Subject: [PATCH 1/3] Update dependencies --- .../AppInsights.WindowsDesktop.csproj | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/AppInsights.WindowsDesktop/AppInsights.WindowsDesktop.csproj b/AppInsights.WindowsDesktop/AppInsights.WindowsDesktop.csproj index f31a868..5157e25 100644 --- a/AppInsights.WindowsDesktop/AppInsights.WindowsDesktop.csproj +++ b/AppInsights.WindowsDesktop/AppInsights.WindowsDesktop.csproj @@ -21,19 +21,15 @@ true - - 10.0.17763.0 - - - - + + - - + + From 23ed7c8f7f795c7fa12c8b90770efd981926e6c9 Mon Sep 17 00:00:00 2001 From: Oren Novotny Date: Sat, 10 Aug 2019 10:42:09 -0400 Subject: [PATCH 2/3] Include OS and process architecture --- .../WindowsDesktop/DeviceTelemetryInitializer.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/AppInsights.WindowsDesktop/WindowsDesktop/DeviceTelemetryInitializer.cs b/AppInsights.WindowsDesktop/WindowsDesktop/DeviceTelemetryInitializer.cs index 5468527..fe24604 100644 --- a/AppInsights.WindowsDesktop/WindowsDesktop/DeviceTelemetryInitializer.cs +++ b/AppInsights.WindowsDesktop/WindowsDesktop/DeviceTelemetryInitializer.cs @@ -14,8 +14,12 @@ public class DeviceTelemetryInitializer : ITelemetryInitializer #if !NET461 private readonly string _operatingSystem = RuntimeInformation.OSDescription?.Replace("Microsoft ", ""); // Shorter description + private readonly string _processArchitecture = RuntimeInformation.ProcessArchitecture.ToString(); + private readonly string _osArchitecture = RuntimeInformation.OSArchitecture.ToString(); #else private readonly string _operatingSystem =$"Windows {Environment.OSVersion.Version.ToString(3)}"; // Shorter description, to match the other platforms + private readonly string _processArchitecture = Environment.Is64BitProcess ? "X64" : "X86"; + private readonly string _osArchitecture = Environment.Is64BitOperatingSystem ? "X64" : "X86"; #endif /// @@ -47,7 +51,10 @@ public void Initialize(ITelemetry telemetry) telemetry.Context.GlobalProperties["Network type"] = reader.GetNetworkType(); telemetry.Context.GlobalProperties["Thread culture"] = reader.GetHostSystemLocale(); telemetry.Context.GlobalProperties["UI culture"] = reader.GetDisplayLanguage(); - telemetry.Context.GlobalProperties["Time zone"] = TimeZoneInfo.Local.Id; + telemetry.Context.GlobalProperties["Time zone"] = TimeZoneInfo.Local.Id; + + telemetry.Context.GlobalProperties["Process architecture"] = _processArchitecture; + telemetry.Context.GlobalProperties["OS architecture"] = _osArchitecture; } } } From 86d54a7738e2e91f4f3112f352e4348828a5e175 Mon Sep 17 00:00:00 2001 From: Oren Novotny Date: Sat, 10 Aug 2019 10:44:43 -0400 Subject: [PATCH 3/3] Build with preview 7 sdk --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8c3f6b5..509baff 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -15,7 +15,7 @@ variables: steps: - task: DotNetCoreInstaller@0 inputs: - version: '3.0.100-preview5-011568' + version: '3.0.100-preview7-012821' - task: DotNetCoreCLI@2 inputs: