Skip to content

Commit 09fa6a4

Browse files
Update to ASP.NET Core 10 preview 6
Update to preview 6 of ASP.NET Core 10.
1 parent bf9c376 commit 09fa6a4

14 files changed

+35
-42
lines changed

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "10.0.100-preview.5.25277.114",
3+
"version": "10.0.100-preview.6.25358.103",
44
"allowPrerelease": false,
55
"rollForward": "latestMajor"
66
}

src/TodoApp/OpenApi/AspNetCore/AddExamplesTransformer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
33

44
using Microsoft.AspNetCore.OpenApi;
5-
using Microsoft.OpenApi.Models;
5+
using Microsoft.OpenApi;
66

77
namespace TodoApp.OpenApi.AspNetCore;
88

src/TodoApp/OpenApi/AspNetCore/AddSchemaDescriptionsTransformer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using System.Xml;
88
using System.Xml.XPath;
99
using Microsoft.AspNetCore.OpenApi;
10-
using Microsoft.OpenApi.Models;
10+
using Microsoft.OpenApi;
1111

1212
namespace TodoApp.OpenApi.AspNetCore;
1313

src/TodoApp/OpenApi/AspNetCore/AspNetCoreOpenApiEndpoints.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
// Copyright (c) Martin Costello, 2024. All rights reserved.
22
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
33

4-
using Microsoft.OpenApi.Models;
5-
using Microsoft.OpenApi.Models.Interfaces;
6-
using Microsoft.OpenApi.Models.References;
4+
using Microsoft.OpenApi;
75

86
namespace TodoApp.OpenApi.AspNetCore;
97

@@ -50,7 +48,7 @@ public static IServiceCollection AddAspNetCoreOpenApi(this IServiceCollection se
5048
var reference = new OpenApiSecuritySchemeReference(referenceId, document);
5149

5250
document.Components ??= new();
53-
document.Components.SecuritySchemes ??= [];
51+
document.Components.SecuritySchemes ??= new Dictionary<string, IOpenApiSecurityScheme>();
5452
document.Components.SecuritySchemes[referenceId] = scheme;
5553
document.Security ??= [];
5654
document.Security.Add(new() { [reference] = [] });

src/TodoApp/OpenApi/ExamplesProcessor.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
using Microsoft.AspNetCore.Mvc;
66
using Microsoft.AspNetCore.Mvc.ApiExplorer;
77
using Microsoft.AspNetCore.Mvc.ModelBinding;
8-
using Microsoft.OpenApi.Models;
9-
using Microsoft.OpenApi.Models.Interfaces;
8+
using Microsoft.OpenApi;
109

1110
namespace TodoApp.OpenApi;
1211

src/TodoApp/OpenApi/Swashbuckle/AddDocumentTagsFilter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Martin Costello, 2024. All rights reserved.
22
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
33

4-
using Microsoft.OpenApi.Models;
4+
using Microsoft.OpenApi;
55
using Swashbuckle.AspNetCore.SwaggerGen;
66

77
namespace TodoApp.OpenApi.Swashbuckle;
@@ -13,7 +13,7 @@ public class AddDocumentTagsFilter : IDocumentFilter
1313
{
1414
public void Apply(OpenApiDocument swaggerDoc, DocumentFilterContext context)
1515
{
16-
swaggerDoc.Tags ??= [];
16+
swaggerDoc.Tags ??= new HashSet<OpenApiTag>();
1717
swaggerDoc.Tags.Add(new() { Name = "TodoApp" });
1818
}
1919
}

src/TodoApp/OpenApi/Swashbuckle/AddServersFilter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using Microsoft.AspNetCore.Hosting.Server;
55
using Microsoft.AspNetCore.Hosting.Server.Features;
6-
using Microsoft.OpenApi.Models;
6+
using Microsoft.OpenApi;
77
using Swashbuckle.AspNetCore.SwaggerGen;
88

99
namespace TodoApp.OpenApi.Swashbuckle;

src/TodoApp/OpenApi/Swashbuckle/ExampleFilter.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// Copyright (c) Martin Costello, 2024. All rights reserved.
22
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
33

4-
using Microsoft.OpenApi.Models;
5-
using Microsoft.OpenApi.Models.Interfaces;
4+
using Microsoft.OpenApi;
65
using Swashbuckle.AspNetCore.SwaggerGen;
76

87
namespace TodoApp.OpenApi.Swashbuckle;

src/TodoApp/OpenApi/Swashbuckle/SwashbuckleOpenApiEndpoints.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// Copyright (c) Martin Costello, 2024. All rights reserved.
22
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
33

4-
using Microsoft.OpenApi.Models;
5-
using Microsoft.OpenApi.Models.References;
4+
using Microsoft.OpenApi;
65

76
namespace TodoApp.OpenApi.Swashbuckle;
87

src/TodoApp/TodoApp.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
<TypeScriptToolsVersion>latest</TypeScriptToolsVersion>
1515
</PropertyGroup>
1616
<ItemGroup>
17-
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.0-preview.5.25277.114" />
18-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.0-preview.5.25277.114" />
19-
<PackageReference Include="Microsoft.Extensions.ApiDescription.Server" Version="10.0.0-preview.5.25277.114" PrivateAssets="all" />
20-
<PackageReference Include="Microsoft.OpenApi" Version="2.0.0-preview.18" />
17+
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.0-preview.6.25358.103" />
18+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.0-preview.6.25358.103" />
19+
<PackageReference Include="Microsoft.Extensions.ApiDescription.Server" Version="10.0.0-preview.6.25358.103" PrivateAssets="all" />
20+
<PackageReference Include="Microsoft.OpenApi" Version="2.0.0" />
2121
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="5.9.2" PrivateAssets="all" />
2222
<PackageReference Include="NSwag.AspNetCore" Version="14.6.1" />
23-
<PackageReference Include="Swashbuckle.AspNetCore" Version="10.0.0-pr.3283.1552" />
24-
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="10.0.0-pr.3283.1552" />
23+
<PackageReference Include="Swashbuckle.AspNetCore" Version="10.0.0-pr.3283.1636" />
24+
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="10.0.0-pr.3283.1636" />
2525
</ItemGroup>
2626
<ItemGroup>
2727
<Content Update="package.json;package-lock.json;tsconfig.json" CopyToPublishDirectory="Never" />

0 commit comments

Comments
 (0)