From af4739ceb70d5ee4419c95243bd25a21f837b593 Mon Sep 17 00:00:00 2001 From: anamnavi Date: Tue, 12 May 2026 18:02:55 -0400 Subject: [PATCH 01/10] Update .NET SDK version and nump NuGet package and Azure.Identity versions --- global.json | 2 +- src/code/Microsoft.PowerShell.PSResourceGet.csproj | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/global.json b/global.json index 40cb45844..53f612868 100644 --- a/global.json +++ b/global.json @@ -1,5 +1,5 @@ { "sdk": { - "version": "8.0.419" + "version": "8.0.421" } } diff --git a/src/code/Microsoft.PowerShell.PSResourceGet.csproj b/src/code/Microsoft.PowerShell.PSResourceGet.csproj index daeaff8e1..31a70814b 100644 --- a/src/code/Microsoft.PowerShell.PSResourceGet.csproj +++ b/src/code/Microsoft.PowerShell.PSResourceGet.csproj @@ -14,17 +14,17 @@ - - - - - - + + + + + + - + From 5a0d4398a781da35661fbf82fbc2da0a0b5b8db0 Mon Sep 17 00:00:00 2001 From: anamnavi Date: Wed, 13 May 2026 10:55:16 -0400 Subject: [PATCH 02/10] Update Azure.Identity to 1.17.2 which is compatible with current System.Text.Json, and remove deprecated DefaultAzureCredentialOptions argument from constructor --- src/code/Microsoft.PowerShell.PSResourceGet.csproj | 2 +- src/code/Utils.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/code/Microsoft.PowerShell.PSResourceGet.csproj b/src/code/Microsoft.PowerShell.PSResourceGet.csproj index 31a70814b..d852b74b8 100644 --- a/src/code/Microsoft.PowerShell.PSResourceGet.csproj +++ b/src/code/Microsoft.PowerShell.PSResourceGet.csproj @@ -24,7 +24,7 @@ - + diff --git a/src/code/Utils.cs b/src/code/Utils.cs index f64d0871f..c13de2516 100644 --- a/src/code/Utils.cs +++ b/src/code/Utils.cs @@ -708,7 +708,6 @@ public static string GetAzAccessToken(PSCmdlet cmdletPassedIn) ExcludeVisualStudioCredential = true, ExcludeWorkloadIdentityCredential = true, ExcludeManagedIdentityCredential = true, // ManagedIdentityCredential makes the experience slow - ExcludeSharedTokenCacheCredential = true, // SharedTokenCacheCredential is not supported on macOS ExcludeAzureCliCredential = false, ExcludeAzurePowerShellCredential = false, ExcludeInteractiveBrowserCredential = false From 8e28f402a5b280056bfab4b5ae6bf5dede559ea4 Mon Sep 17 00:00:00 2001 From: anamnavi Date: Wed, 13 May 2026 12:38:09 -0400 Subject: [PATCH 03/10] revert Azure.Identity bump --- src/code/Microsoft.PowerShell.PSResourceGet.csproj | 2 +- src/code/Utils.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/code/Microsoft.PowerShell.PSResourceGet.csproj b/src/code/Microsoft.PowerShell.PSResourceGet.csproj index d852b74b8..466587f38 100644 --- a/src/code/Microsoft.PowerShell.PSResourceGet.csproj +++ b/src/code/Microsoft.PowerShell.PSResourceGet.csproj @@ -24,7 +24,7 @@ - + diff --git a/src/code/Utils.cs b/src/code/Utils.cs index c13de2516..f64d0871f 100644 --- a/src/code/Utils.cs +++ b/src/code/Utils.cs @@ -708,6 +708,7 @@ public static string GetAzAccessToken(PSCmdlet cmdletPassedIn) ExcludeVisualStudioCredential = true, ExcludeWorkloadIdentityCredential = true, ExcludeManagedIdentityCredential = true, // ManagedIdentityCredential makes the experience slow + ExcludeSharedTokenCacheCredential = true, // SharedTokenCacheCredential is not supported on macOS ExcludeAzureCliCredential = false, ExcludeAzurePowerShellCredential = false, ExcludeInteractiveBrowserCredential = false From d10b6fc6417ad8f86d54f5c14efb44175cda0c02 Mon Sep 17 00:00:00 2001 From: anamnavi Date: Wed, 13 May 2026 14:27:05 -0400 Subject: [PATCH 04/10] bump Azure.Identity to 1.17.1 to see if errors occur --- src/code/Microsoft.PowerShell.PSResourceGet.csproj | 2 +- src/code/Utils.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/code/Microsoft.PowerShell.PSResourceGet.csproj b/src/code/Microsoft.PowerShell.PSResourceGet.csproj index 466587f38..c24806846 100644 --- a/src/code/Microsoft.PowerShell.PSResourceGet.csproj +++ b/src/code/Microsoft.PowerShell.PSResourceGet.csproj @@ -24,7 +24,7 @@ - + diff --git a/src/code/Utils.cs b/src/code/Utils.cs index f64d0871f..c13de2516 100644 --- a/src/code/Utils.cs +++ b/src/code/Utils.cs @@ -708,7 +708,6 @@ public static string GetAzAccessToken(PSCmdlet cmdletPassedIn) ExcludeVisualStudioCredential = true, ExcludeWorkloadIdentityCredential = true, ExcludeManagedIdentityCredential = true, // ManagedIdentityCredential makes the experience slow - ExcludeSharedTokenCacheCredential = true, // SharedTokenCacheCredential is not supported on macOS ExcludeAzureCliCredential = false, ExcludeAzurePowerShellCredential = false, ExcludeInteractiveBrowserCredential = false From 75108239eb718cc0ab9ab0d2adb0e3e6e4f1aaa3 Mon Sep 17 00:00:00 2001 From: anamnavi Date: Wed, 13 May 2026 14:55:44 -0400 Subject: [PATCH 05/10] revert NuGet.* package bumps --- src/code/Microsoft.PowerShell.PSResourceGet.csproj | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/code/Microsoft.PowerShell.PSResourceGet.csproj b/src/code/Microsoft.PowerShell.PSResourceGet.csproj index c24806846..9ce4565dc 100644 --- a/src/code/Microsoft.PowerShell.PSResourceGet.csproj +++ b/src/code/Microsoft.PowerShell.PSResourceGet.csproj @@ -14,12 +14,12 @@ - - - - - - + + + + + + From d0b278ea36f24df7ad2b7c10e28bd5cc686d569d Mon Sep 17 00:00:00 2001 From: anamnavi Date: Wed, 13 May 2026 17:31:45 -0400 Subject: [PATCH 06/10] revert Azure.Identity bump and only keep removal of DefaultAzureCredentialOptions property --- src/code/Microsoft.PowerShell.PSResourceGet.csproj | 2 +- src/code/Utils.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/code/Microsoft.PowerShell.PSResourceGet.csproj b/src/code/Microsoft.PowerShell.PSResourceGet.csproj index 9ce4565dc..daeaff8e1 100644 --- a/src/code/Microsoft.PowerShell.PSResourceGet.csproj +++ b/src/code/Microsoft.PowerShell.PSResourceGet.csproj @@ -24,7 +24,7 @@ - + diff --git a/src/code/Utils.cs b/src/code/Utils.cs index c13de2516..f64d0871f 100644 --- a/src/code/Utils.cs +++ b/src/code/Utils.cs @@ -708,6 +708,7 @@ public static string GetAzAccessToken(PSCmdlet cmdletPassedIn) ExcludeVisualStudioCredential = true, ExcludeWorkloadIdentityCredential = true, ExcludeManagedIdentityCredential = true, // ManagedIdentityCredential makes the experience slow + ExcludeSharedTokenCacheCredential = true, // SharedTokenCacheCredential is not supported on macOS ExcludeAzureCliCredential = false, ExcludeAzurePowerShellCredential = false, ExcludeInteractiveBrowserCredential = false From 0e1db6be5c54e169b52b871d2bd16556b9900e0e Mon Sep 17 00:00:00 2001 From: anamnavi Date: Wed, 13 May 2026 17:39:40 -0400 Subject: [PATCH 07/10] remove DefaultAzureCredentialOptions property --- src/code/Utils.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/code/Utils.cs b/src/code/Utils.cs index f64d0871f..c13de2516 100644 --- a/src/code/Utils.cs +++ b/src/code/Utils.cs @@ -708,7 +708,6 @@ public static string GetAzAccessToken(PSCmdlet cmdletPassedIn) ExcludeVisualStudioCredential = true, ExcludeWorkloadIdentityCredential = true, ExcludeManagedIdentityCredential = true, // ManagedIdentityCredential makes the experience slow - ExcludeSharedTokenCacheCredential = true, // SharedTokenCacheCredential is not supported on macOS ExcludeAzureCliCredential = false, ExcludeAzurePowerShellCredential = false, ExcludeInteractiveBrowserCredential = false From 32a85c08b3aa414ede894270cc5e92724140694f Mon Sep 17 00:00:00 2001 From: anamnavi Date: Thu, 14 May 2026 13:31:42 -0400 Subject: [PATCH 08/10] Add references for transitive dependencies System.Buffers and System.ClientModel --- doBuild.ps1 | 1 + src/code/Microsoft.PowerShell.PSResourceGet.csproj | 3 ++- src/code/ModuleInitAndCleanup.cs | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doBuild.ps1 b/doBuild.ps1 index 9edfca0d9..87985f06c 100644 --- a/doBuild.ps1 +++ b/doBuild.ps1 @@ -114,6 +114,7 @@ function DoBuild 'NuGet.Protocol' 'NuGet.Versioning' 'System.Buffers' + 'System.ClientModel' 'System.Diagnostics.DiagnosticSource' 'System.IO.FileSystem.AccessControl' 'System.Memory.Data' diff --git a/src/code/Microsoft.PowerShell.PSResourceGet.csproj b/src/code/Microsoft.PowerShell.PSResourceGet.csproj index daeaff8e1..2e23802cd 100644 --- a/src/code/Microsoft.PowerShell.PSResourceGet.csproj +++ b/src/code/Microsoft.PowerShell.PSResourceGet.csproj @@ -24,7 +24,8 @@ - + + diff --git a/src/code/ModuleInitAndCleanup.cs b/src/code/ModuleInitAndCleanup.cs index 28e83f284..9633e8466 100644 --- a/src/code/ModuleInitAndCleanup.cs +++ b/src/code/ModuleInitAndCleanup.cs @@ -15,6 +15,8 @@ public class UnsafeAssemblyHandler : IModuleAssemblyInitializer, IModuleAssembly private static readonly HashSet NetFrameworkLoadFromPath = new HashSet(StringComparer.OrdinalIgnoreCase) { + "System.Buffers", + "System.ClientModel", "System.Runtime.CompilerServices.Unsafe", "System.Memory", "System.Diagnostics.DiagnosticSource", From 1969c3e2445d888c27e4474a00041bbe99d71e8c Mon Sep 17 00:00:00 2001 From: anamnavi Date: Fri, 15 May 2026 11:05:28 -0400 Subject: [PATCH 09/10] Add reference for System.Numerics.Vectors --- src/code/ModuleInitAndCleanup.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/code/ModuleInitAndCleanup.cs b/src/code/ModuleInitAndCleanup.cs index 9633e8466..b4438cb17 100644 --- a/src/code/ModuleInitAndCleanup.cs +++ b/src/code/ModuleInitAndCleanup.cs @@ -17,6 +17,7 @@ public class UnsafeAssemblyHandler : IModuleAssemblyInitializer, IModuleAssembly { "System.Buffers", "System.ClientModel", + "System.Numerics.Vectors", "System.Runtime.CompilerServices.Unsafe", "System.Memory", "System.Diagnostics.DiagnosticSource", From c874b798cef4ba02f52258620df11e97c87491fc Mon Sep 17 00:00:00 2001 From: anamnavi Date: Fri, 15 May 2026 12:11:20 -0400 Subject: [PATCH 10/10] Add reference for System.Threading.Tasks.Extensions --- src/code/ModuleInitAndCleanup.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/code/ModuleInitAndCleanup.cs b/src/code/ModuleInitAndCleanup.cs index b4438cb17..b3f1992d1 100644 --- a/src/code/ModuleInitAndCleanup.cs +++ b/src/code/ModuleInitAndCleanup.cs @@ -18,6 +18,7 @@ public class UnsafeAssemblyHandler : IModuleAssemblyInitializer, IModuleAssembly "System.Buffers", "System.ClientModel", "System.Numerics.Vectors", + "System.Threading.Tasks.Extensions", "System.Runtime.CompilerServices.Unsafe", "System.Memory", "System.Diagnostics.DiagnosticSource",