Skip to content

Commit c37851d

Browse files
authored
Merge pull request #24 from Cabazure/dependencies
Update Dependencies
2 parents d920e8c + 075a108 commit c37851d

File tree

36 files changed

+92
-32
lines changed

36 files changed

+92
-32
lines changed

global.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"sdk": {
3+
"version": "9.0.0",
4+
"rollForward": "latestMinor",
5+
"allowPrerelease": false
6+
}
7+
}

samples/AzureRest/AzureRest.Contracts/AzureRest.Contracts.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="System.Text.Json" Version="9.0.0" />
8+
<PackageReference Include="System.Text.Json" Version="9.0.10" />
99
</ItemGroup>
1010

1111
</Project>

samples/AzureRest/AzureRest.TestApp/AzureRest.TestApp.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.0" />
12-
<PackageReference Include="Azure.Identity" Version="1.13.1" />
11+
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.10" />
12+
<PackageReference Include="Azure.Identity" Version="1.17.0" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

src/Cabazure.Client.Runtime/Cabazure.Client.Runtime.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
</ItemGroup>
1616

1717
<ItemGroup>
18-
<PackageReference Include="Azure.Core" Version="1.44.1" />
19-
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
20-
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" />
18+
<PackageReference Include="Azure.Core" Version="1.49.0" />
19+
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.10" />
20+
<PackageReference Include="Microsoft.Extensions.Options" Version="9.0.10" />
2121
</ItemGroup>
2222

2323
</Project>

src/Cabazure.Client/Cabazure.Client.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
</ItemGroup>
3636

3737
<ItemGroup>
38-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" PrivateAssets="all" />
38+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.14.0" PrivateAssets="all" />
3939
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" PrivateAssets="all" />
40-
<PackageReference Include="Azure.Core" Version="1.44.1" />
41-
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
42-
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" />
40+
<PackageReference Include="Azure.Core" Version="1.49.0" />
41+
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.10" />
42+
<PackageReference Include="Microsoft.Extensions.Options" Version="9.0.10" />
4343
</ItemGroup>
4444

4545
<ItemGroup>

src/Cabazure.Client/ClientEndpointGenerator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ private static void ProcessEndpoint(
4040
.Usings
4141
.Append("using System.Net;")
4242
.Append("using System.Net.Http;")
43+
.Append("using System.Runtime.CompilerServices;")
4344
.Append("using Cabazure.Client;")
4445
.Append("using Cabazure.Client.Builder;")
4546
.Where(us => us != $"using {endpoint.Namespace};")
@@ -66,6 +67,7 @@ private static void ProcessEndpoint(
6667
}
6768

6869
source.AppendLine($$"""
70+
{{indention}}[CompilerGenerated]
6971
{{indention}}internal partial class {{endpoint.ClassName}} : {{endpoint.InterfaceName}}
7072
{{indention}}{
7173
{{indention}} private readonly IHttpClientFactory factory;

src/Cabazure.Client/ClientInitializationGenerator.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,11 @@ public static void GenerateInitialization(
7474
.Select(e => e.Namespace)
7575
.OfType<string>()
7676
.Append("System")
77+
.Append("System.Collections.Generic")
7778
.Append("System.Diagnostics.CodeAnalysis")
7879
.Append("System.Net.Http")
80+
.Append("System.Runtime.CompilerServices")
7981
.Append("System.Text.Json")
80-
.Append("System.Collections.Generic")
8182
.Append("Azure.Core")
8283
.Append("Cabazure.Client")
8384
.Append("Cabazure.Client.Authentication")
@@ -104,6 +105,7 @@ public static void GenerateInitialization(
104105
source.AppendLine($$"""
105106
namespace Microsoft.Extensions.DependencyInjection
106107
{
108+
[CompilerGenerated]
107109
internal static partial class ClientInitialization
108110
{
109111
internal static partial IServiceCollection AddCabazureClient<{{aotAttribute}}TOptions>(

test/.editorconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ dotnet_diagnostic.SA1402.severity = none # File may only contain a si
2424
dotnet_diagnostic.S2344.severity = none # Enumeration type names should not have "Flags" or "Enum" suffixes
2525
dotnet_diagnostic.CS8625.severity = none # Cannot convert null literal to non-nullable reference type.
2626
dotnet_diagnostic.CS8602.severity = none # Dereference of a possibly null reference.
27-
dotnet_diagnostic.CS8604.severity = none # Possible null reference argument.
27+
dotnet_diagnostic.CS8604.severity = none # Possible null reference argument.
28+
dotnet_diagnostic.xUnit1051.severity = none # xUnit1051: Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken

test/Cabazure.Client.IntegrationTests/Cabazure.Client.IntegrationTests.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="Atc.Test" Version="1.1.4" />
17-
<PackageReference Include="coverlet.collector" Version="6.0.2">
16+
<PackageReference Include="Atc.Test" Version="2.0.16" />
17+
<PackageReference Include="coverlet.collector" Version="6.0.4">
1818
<PrivateAssets>all</PrivateAssets>
1919
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2020
</PackageReference>
21-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
22-
<PackageReference Include="xunit" Version="2.9.2" />
23-
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
21+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
22+
<PackageReference Include="xunit.v3" Version="3.1.0" />
23+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
2424
<PrivateAssets>all</PrivateAssets>
2525
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2626
</PackageReference>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
global using Atc.Test;
22
global using AutoFixture.AutoNSubstitute;
3-
global using AutoFixture.Xunit2;
3+
global using AutoFixture.Xunit3;
44
global using FluentAssertions;
55
global using NSubstitute;

0 commit comments

Comments
 (0)