Skip to content

Customize AutoMapper to fix #18721 #20110

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 4 commits into from
Nov 18, 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
2 changes: 1 addition & 1 deletion src/Aks/Aks/Aks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<ItemGroup>
<PackageReference Include="YamlDotNet.Signed" Version="5.2.1" />
<PackageReference Include="AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.Azure.PowerShell.AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.Azure.Management.ContainerService" Version="1.2.0" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/Aks/Aks/Az.Aks.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ DotNetFrameworkVersion = '4.7.2'
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.10.2'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'YamlDotNet.dll', 'AutoMapper.dll',
RequiredAssemblies = 'YamlDotNet.dll', 'Microsoft.Azure.PowerShell.AutoMapper.dll',
'Microsoft.Azure.Management.ContainerService.dll',
'Aks.Autorest\bin\Az.Aks.private.dll'

Expand Down
1 change: 1 addition & 0 deletions src/Aks/Aks/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Upgraded AutoMapper to Microsoft.Azure.PowerShell.AutoMapper 6.2.2 with fix [#18721]

## Version 5.0.0
* [Breaking Change] Removed the alias `Install-AzAksKubectl` of `Install-AzAksCliTool`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.Azure.PowerShell.AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.Azure.Management.ApiManagement" Version="8.0.0-preview" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/ApiManagement/ApiManagement/ApiManagement.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.Azure.PowerShell.AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.Azure.Management.ApiManagement" Version="8.0.0-preview" />
<PackageReference Include="WindowsAzure.Storage" Version="9.3.0" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/ApiManagement/ApiManagement/Az.ApiManagement.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ DotNetFrameworkVersion = '4.7.2'
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.10.2'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'AutoMapper.dll', 'Microsoft.Azure.Management.ApiManagement.dll',
RequiredAssemblies = 'Microsoft.Azure.PowerShell.AutoMapper.dll', 'Microsoft.Azure.Management.ApiManagement.dll',
'Microsoft.WindowsAzure.Storage.dll'

# Script files (.ps1) that are run in the caller's environment prior to importing this module.
Expand Down
1 change: 1 addition & 0 deletions src/ApiManagement/ApiManagement/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Upgraded AutoMapper to Microsoft.Azure.PowerShell.AutoMapper 6.2.2 with fix [#18721]

## Version 4.0.0
* [Breaking Change] Changed the type of parameter `Sku` from Enum to String in `Add-AzApiManagementRegion`, `New-AzApiManagement` and `Update-AzApiManagementRegion`.
Expand Down
2 changes: 1 addition & 1 deletion src/Compute/Compute/Az.Compute.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ DotNetFrameworkVersion = '4.7.2'
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.10.3'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'AutoMapper.dll', 'Microsoft.Azure.Management.Compute.dll',
RequiredAssemblies = 'Microsoft.Azure.PowerShell.AutoMapper.dll', 'Microsoft.Azure.Management.Compute.dll',
'Microsoft.WindowsAzure.Storage.dll',
'Microsoft.Azure.Management.ResourceGraph.dll',
'Compute.Autorest\bin\Az.Compute.private.dll',
Expand Down
1 change: 1 addition & 0 deletions src/Compute/Compute/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

-->
## Upcoming Release
* Upgraded AutoMapper to Microsoft.Azure.PowerShell.AutoMapper 6.2.2 with fix [#18721]

## Version 5.1.0
* Fixed EdgeZone does not pass to VM for `New-AzVM` "SimpleParameterSet" [#18978]
Expand Down
2 changes: 1 addition & 1 deletion src/Compute/Compute/Compute.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.Azure.PowerShell.AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.Azure.Management.ResourceGraph" Version="2.1.0" />
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="58.0.0" />
<PackageReference Include="System.Security.Permissions" Version="4.5.0" />
Expand Down
2 changes: 1 addition & 1 deletion src/Maintenance/Maintenance/Az.Maintenance.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ DotNetFrameworkVersion = '4.7.2'
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.7.4'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'AutoMapper.dll', 'Microsoft.Azure.Management.Maintenance.dll'
RequiredAssemblies = 'Microsoft.Azure.PowerShell.AutoMapper.dll', 'Microsoft.Azure.Management.Maintenance.dll'

# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()
Expand Down
1 change: 1 addition & 0 deletions src/Maintenance/Maintenance/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
-->

## Upcoming Release
* Upgraded AutoMapper to Microsoft.Azure.PowerShell.AutoMapper 6.2.2 with fix [#18721]

## Version 1.2.0
* Added Guest patch maintenance support.
Expand Down
2 changes: 1 addition & 1 deletion src/Maintenance/Maintenance/Maintenance.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.Azure.PowerShell.AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.Azure.Management.Maintenance" Version="1.4.0-preview" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/Monitor/Monitor/Az.Monitor.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ DotNetFrameworkVersion = '4.7.2'
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.10.2'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'Microsoft.Azure.Management.Monitor.dll', 'AutoMapper.dll',
RequiredAssemblies = 'Microsoft.Azure.Management.Monitor.dll', 'Microsoft.Azure.PowerShell.AutoMapper.dll',
'ActivityLogAlert.Autorest\bin\Az.ActivityLogAlert.private.dll',
'DiagnosticSetting.Autorest\bin\Az.DiagnosticSetting.private.dll',
'ScheduledQueryRule.Autorest\bin\Az.ScheduledQueryRule.private.dll',
Expand Down
1 change: 1 addition & 0 deletions src/Monitor/Monitor/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
-->

## Upcoming Release
* Upgraded AutoMapper to Microsoft.Azure.PowerShell.AutoMapper 6.2.2 with fix [#18721]

## Version 4.2.0
* [Breaking Change] Upgraded API version for ActivityLogAlert from 2017-04-01 to 2020-10-01, affected cmdlets:
Expand Down
2 changes: 1 addition & 1 deletion src/Monitor/Monitor/Monitor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Management.Monitor" Version="0.26.0-preview" />
<PackageReference Include="AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.Azure.PowerShell.AutoMapper" Version="6.2.2" />
</ItemGroup>

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />
Expand Down
2 changes: 1 addition & 1 deletion src/Network/Network/Az.Network.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ DotNetFrameworkVersion = '4.7.2'
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.10.3'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'AutoMapper.dll', 'Microsoft.Azure.Management.Network.dll'
RequiredAssemblies = 'Microsoft.Azure.PowerShell.AutoMapper.dll', 'Microsoft.Azure.Management.Network.dll'

# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()
Expand Down
1 change: 1 addition & 0 deletions src/Network/Network/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
--->

## Upcoming Release
* Upgraded AutoMapper to Microsoft.Azure.PowerShell.AutoMapper 6.2.2 with fix [#18721]

## Version 5.1.1
* Fixed bug with New-AzCustomIpPrefix
Expand Down
2 changes: 1 addition & 1 deletion src/Network/Network/Network.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.Azure.PowerShell.AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/Peering/Peering/Az.Peering.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ DotNetFrameworkVersion = '4.7.2'
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.7.4'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'Microsoft.Azure.Management.Peering.dll', 'AutoMapper.dll'
RequiredAssemblies = 'Microsoft.Azure.Management.Peering.dll', 'Microsoft.Azure.PowerShell.AutoMapper.dll'

# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()
Expand Down
1 change: 1 addition & 0 deletions src/Peering/Peering/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Upgraded AutoMapper to Microsoft.Azure.PowerShell.AutoMapper 6.2.2 with fix [#18721]

## Version 0.3.0
* Added support for cdn peering prefixes
Expand Down
2 changes: 1 addition & 1 deletion src/Peering/Peering/Peering.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.Azure.PowerShell.AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.Azure.Management.Peering" Version="2.1.1" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.Azure.PowerShell.AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.Azure.Management.RecoveryServices" Version="4.3.3-preview" />
<PackageReference Include="Microsoft.Azure.Management.RecoveryServices.SiteRecovery" Version="2.2.0-preview" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ DotNetFrameworkVersion = '4.7.2'
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.10.3'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'AutoMapper.dll',
RequiredAssemblies = 'Microsoft.Azure.PowerShell.AutoMapper.dll',
'Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models.dll',
'Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Helpers.dll',
'Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Logger.dll',
Expand Down
1 change: 1 addition & 0 deletions src/RecoveryServices/RecoveryServices/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Upgraded AutoMapper to Microsoft.Azure.PowerShell.AutoMapper 6.2.2 with fix [#18721]

## Version 6.1.0
* Added support for cross zonal restore for ZRS vaults for non-ZonePinned VM
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/ResourceManager/ResourceManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.Azure.PowerShell.AutoMapper" Version="6.2.2" />
<PackageReference Include="Microsoft.Azure.Management.ResourceManager" Version="3.17.3-preview" />
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="2.2.0" />
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Resources/Az.Resources.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ RequiredAssemblies = 'Microsoft.Azure.Management.Authorization.dll',
'Microsoft.Extensions.DependencyInjection.Abstractions.dll',
'Microsoft.Extensions.Options.dll',
'Microsoft.Extensions.Primitives.dll',
'System.Runtime.CompilerServices.Unsafe.dll', 'AutoMapper.dll',
'System.Runtime.CompilerServices.Unsafe.dll', 'Microsoft.Azure.PowerShell.AutoMapper.dll',
'MSGraph.Autorest\bin\Az.MSGraph.private.dll',
'Authorization.Autorest\bin\Az.Authorization.private.dll'

Expand Down
1 change: 1 addition & 0 deletions src/Resources/Resources/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
-->

## Upcoming Release
* Upgraded AutoMapper to Microsoft.Azure.PowerShell.AutoMapper 6.2.2 with fix [#18721]

## Version 6.4.0
* Fixed parameter `Count` for
Expand Down
4 changes: 3 additions & 1 deletion tools/CleanupBuild.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ foreach($RMPath in $resourceManagerPaths)

$acceptedDlls = @(
# netcoreapp, can't be in RequiredAssemblies, but we need to pack it
"Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.dll"
"Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.dll",
# customized AutoMapper
"Microsoft.Azure.PowerShell.AutoMapper.dll"
)

# NestedModule Assemblies may have a folder path, just getting the dll name alone
Expand Down