Skip to content

Commit 6718ee7

Browse files
authored
Make Azure.ResourceManager.Network AOT-compatible (#51865)
1 parent 9700bf1 commit 6718ee7

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

sdk/network/Azure.ResourceManager.Network/CHANGELOG.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
# Release History
22

3-
## 1.12.0-beta.1 (Unreleased)
3+
## 1.11.2 (2025-08-11)
44

55
### Features Added
66

7-
### Breaking Changes
7+
- Make `Azure.ResourceManager.Network` AOT-compatible
88

99
### Bugs Fixed
1010

1111
- Fixed an issue in `ManagedRuleSetRuleGroup` deserialization where rule IDs could be either strings or numbers in JSON, causing `InvalidOperationException` when parsing mixed-type arrays.
1212

13-
### Other Changes
14-
1513
## 1.11.1 (2025-07-01)
1614

1715
### Bugs Fixed

sdk/network/Azure.ResourceManager.Network/src/Azure.ResourceManager.Network.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<Version>1.12.0-beta.1</Version>
3+
<Version>1.11.2</Version>
44
<!--The ApiCompatVersion is managed automatically and should not generally be modified manually.-->
55
<ApiCompatVersion>1.11.1</ApiCompatVersion>
66
<PackageId>Azure.ResourceManager.Network</PackageId>

sdk/network/Azure.ResourceManager.Network/src/Customization/Models/ApplicationGatewayAvailableSslOptionsInfo.Serialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ internal static ApplicationGatewayAvailableSslOptionsInfo DeserializeApplication
110110
{
111111
val = val.Replace("resourceGroups//", string.Empty);
112112
}
113-
array.Add(JsonSerializer.Deserialize<WritableSubResource>(val));
113+
array.Add(ModelReaderWriter.Read<WritableSubResource>(BinaryData.FromString(val), ModelSerializationExtensions.WireOptions, AzureResourceManagerNetworkContext.Default));
114114
}
115115
predefinedPolicies = array;
116116
continue;

sdk/network/ci.mgmt.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ extends:
2222
Artifacts:
2323
- name: Azure.ResourceManager.Network
2424
safeName: AzureResourceManagerNetwork
25+
CheckAOTCompat: true
26+
AOTTestInputs:
27+
- ArtifactName: Azure.ResourceManager.Network
28+
ExpectedWarningsFilepath: None

0 commit comments

Comments
 (0)