Skip to content

Commit

Permalink
Merge pull request #171 from dingmeng-xue/telemetry
Browse files Browse the repository at this point in the history
Correct ProductInfoHeaderValue for compatibility
  • Loading branch information
dingmeng-xue authored Feb 10, 2020
2 parents 080b211 + ce5312d commit 129b3ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Common/AzurePowerShell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ public class AzurePowerShell

public const string TokenCacheFile = "TokenCache.dat";

public static ProductInfoHeaderValue UserAgentValue = new ProductInfoHeaderValue(
"AzurePowershell",
string.Format("Az{0}", AzurePowerShell.AssemblyVersion));

public static string ProfileDirectory = Path.Combine(
#if NETSTANDARD
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
".Azure");

public static ProductInfoHeaderValue UserAgentValue = new ProductInfoHeaderValue(
"AzurePowershell",
string.Format("Az{0}", AzurePowerShell.AssemblyVersion));

public static string OldProfileDirectory = Path.Combine(
#endif
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
Expand Down

0 comments on commit 129b3ab

Please sign in to comment.