Skip to content

Commit 4f28a65

Browse files
Copilotm-nash
andcommitted
Prepare infrastructure for System.ClientModel 1.6.0-alpha version
Co-authored-by: m-nash <[email protected]>
1 parent 3958281 commit 4f28a65

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/src/Providers/ModelProvider.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ protected override FormattableString BuildDescription()
5555
private readonly bool _isAbstract;
5656

5757
private readonly CSharpType _additionalBinaryDataPropsFieldType = typeof(IDictionary<string, BinaryData>);
58-
private readonly CSharpType _additionalPropertiesType = new CSharpType(typeof(object)); // TODO: Replace with AdditionalProperties when available
58+
// TODO: Replace with typeof(System.ClientModel.Primitives.AdditionalProperties) when System.ClientModel 1.6.0-alpha.20250804.4 becomes available
59+
private readonly CSharpType _additionalPropertiesType = new CSharpType(typeof(object));
5960
private readonly Type _additionalPropsUnknownType = typeof(BinaryData);
6061
private readonly Lazy<TypeProvider?>? _baseTypeProvider;
6162
private FieldProvider? _rawDataField;
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+
<packageSources>
4+
<clear />
5+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
6+
<add key="azure-sdk-for-net" value="https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json" />
7+
</packageSources>
8+
<disabledPackageSources>
9+
<clear />
10+
</disabledPackageSources>
11+
</configuration>

packages/http-client-csharp/generator/Packages.Data.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<PackageReference Update="NuGet.Versioning" Version="6.14.0" />
1515
<PackageReference Update="NuGet.Protocol" Version="6.14.0" />
1616
<PackageReference Update="System.ComponentModel.Composition" Version="8.0.0" />
17+
<!-- TODO: Update to 1.6.0-alpha.20250804.4 when available from azure-sdk-for-net feed -->
1718
<PackageReference Update="System.ClientModel" Version="1.5.1" />
1819
<PackageReference Update="System.Memory.Data" Version="8.0.1" />
1920
</ItemGroup>

0 commit comments

Comments
 (0)