Skip to content

Upgraded System.Reflection.DispatchProxy on Windows PowerShell #17969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions documentation/development-docs/common-assemblies.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ For further reading, please visit https://docs.microsoft.com/en-us/dotnet/standa
5. Extract DLL file in nuget package folder `lib/net461` (alternatively, `netstandard2.0`) of `Azure.Core` and changed dependencies and copy them to `src/lib/NetFxPreloadAssemblies`.
6. Update assembly version of `Azure.Core` and changed dependencies to .NET Framework in `/src/Accounts/Authentication/Utilities/CustomAssemblyResolver.cs`.
7. Verify built `Az.Accounts` can work with existing Azure PowerShell modules on PowerShell 7 and Windows PowerShell.
- Import module into PowerShell 7 or Windows PowerShell.
```powershell
Import-Module .\artifacts\Release\Az.Accounts\Az.Accounts.psd1
```
- Import module into PowerShell 7 or Windows PowerShell, and ensure there is no error in verbose output
```powershell
$VerbosePreference = "Continue"
Import-Module .\artifacts\Release\Az.Accounts\Az.Accounts.psd1
```
- Connect to Azure and switch to your test subscription
```powershell
Connect-AzAccount
Expand Down
1 change: 1 addition & 0 deletions src/Accounts/Accounts/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
-->

## Upcoming Release
* Upgraded System.Reflection.DispatchProxy on Windows PowerShell [#17856]

## Version 2.7.6
* Upgraded Microsoft.Rest.ClientRuntime to 2.3.24
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static class CustomAssemblyResolver
{"System.Net.Http.WinHttpHandler", new Version("4.0.2.0")},
{"System.Numerics.Vectors", new Version("4.1.4.0")},
{"System.Private.ServiceModel", new Version("4.7.0.0")}, //used by Compute
{"System.Reflection.DispatchProxy", new Version("4.0.3.0")},
{"System.Reflection.DispatchProxy", new Version("4.0.4.0")},
{"System.Runtime.CompilerServices.Unsafe", new Version("4.0.6.0")},
{"System.Security.AccessControl", new Version("4.1.1.0")},
{"System.Security.Cryptography.Cng", new Version("4.3.0.0")},
Expand Down
Binary file not shown.