Skip to content

Commit f247883

Browse files
authored
Merge pull request Azure#11247 from gkostal/attestation-fix-dependency-bug-pr
AzAttestation Bug Fix: Add three missing required assemblies
2 parents 9813b78 + ff5cc3b commit f247883

File tree

4 files changed

+22
-9
lines changed

4 files changed

+22
-9
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<runtime>
4+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
5+
<dependentAssembly>
6+
<assemblyIdentity name="Microsoft.IdentityModel.Tokens" publicKeyToken="31bf3856ad364e35" culture="neutral" />
7+
<bindingRedirect oldVersion="5.1.2.0-5.6.0.0" newVersion="5.6.0.0" />
8+
</dependentAssembly>
9+
</assemblyBinding>
10+
</runtime>
11+
</configuration>

src/Attestation/Attestation.Test/Attestation.Test.csproj

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@
1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Attestation" Version="0.10.0-preview" />
1515
<PackageReference Include="Microsoft.Azure.Management.Attestation" Version="0.11.0-preview" />
16+
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="5.6.0">
17+
<NoWarn>NU1608</NoWarn>
18+
</PackageReference>
1619
</ItemGroup>
1720

18-
<ItemGroup>
19-
<Reference Include="Microsoft.Azure.Management.Attestation">
20-
</Reference>
21-
</ItemGroup>
22-
2321
<ItemGroup>
2422
<None Update="PemFiles\*.*" CopyToOutputDirectory="PreserveNewest" />
2523
<None Update="SamplePolicyFiles\*.*" CopyToOutputDirectory="PreserveNewest" />

src/Attestation/Attestation/Az.Attestation.psd1

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ DotNetFrameworkVersion = '4.7.2'
5656
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.7.2'; })
5757

5858
# Assemblies that must be loaded prior to importing this module
59-
RequiredAssemblies = 'Microsoft.Azure.Management.Attestation.dll',
60-
'Microsoft.Azure.Attestation.dll'
59+
RequiredAssemblies = 'Microsoft.Azure.Management.Attestation.dll',
60+
'Microsoft.Azure.Attestation.dll',
61+
'Microsoft.IdentityModel.JsonWebTokens.dll',
62+
'Microsoft.IdentityModel.Tokens.dll',
63+
'Microsoft.IdentityModel.Logging.dll'
6164

6265
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
6366
# ScriptsToProcess = @()
@@ -75,8 +78,8 @@ NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.Attestation.dll')
7578
FunctionsToExport = @()
7679

7780
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
78-
CmdletsToExport = 'New-AzAttestation', 'Get-AzAttestation', 'Remove-AzAttestation',
79-
'Get-AzAttestationPolicy', 'Set-AzAttestationPolicy',
81+
CmdletsToExport = 'New-AzAttestation', 'Get-AzAttestation', 'Remove-AzAttestation',
82+
'Get-AzAttestationPolicy', 'Set-AzAttestationPolicy',
8083
'Reset-AzAttestationPolicy',
8184
'Get-AzAttestationPolicySigners', 'Add-AzAttestationPolicySigner',
8285
'Remove-AzAttestationPolicySigner'

src/Attestation/Attestation/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
## Upcoming Release
2323
* Added policy signer management cmdlets to `Az.Attestation` module
2424
* Added `Location` and `Tag` to `New-AzAttestation`
25+
* Added three additional required assemblies to Az.Attestation.psd1
2526

2627
## Version 0.1.4
2728
* Added policy management cmdlets to `Az.Attestation` module

0 commit comments

Comments
 (0)