Skip to content

Commit af79a28

Browse files
authored
(#275) Updated to .NET 9 (#276)
1 parent 4855b2f commit af79a28

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

samples/datasync-server/src/Sample.Datasync.Server/Program.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
_ = builder.Services.AddSwaggerGen(options => options.AddDatasyncControllers());
3434
}
3535

36-
if (openApiEnabled)
37-
{
38-
_ = builder.Services.AddOpenApi();
39-
}
36+
//if (openApiEnabled)
37+
//{
38+
// _ = builder.Services.AddOpenApi(options => options.AddDatasyncTransformers());
39+
//}
4040

4141
WebApplication app = builder.Build();
4242

@@ -62,9 +62,9 @@
6262
app.UseAuthorization();
6363
app.MapControllers();
6464

65-
if (openApiEnabled)
66-
{
67-
_ = app.MapOpenApi(pattern: "swagger/{documentName}/swagger.json");
68-
}
65+
//if (openApiEnabled)
66+
//{
67+
// _ = app.MapOpenApi(pattern: "swagger/{documentName}/swagger.json");
68+
//}
6969

7070
app.Run();

samples/datasync-server/src/Sample.Datasync.Server/Sample.Datasync.Server.csproj

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,15 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10+
<PackageReference Include="CommunityToolkit.Datasync.Server" Version="9.0.0" />
11+
<PackageReference Include="CommunityToolkit.Datasync.Server.EntityFrameworkCore" Version="9.0.0" />
12+
<PackageReference Include="CommunityToolkit.Datasync.Server.NSwag" Version="9.0.0" />
13+
<PackageReference Include="CommunityToolkit.Datasync.Server.Swashbuckle" Version="9.0.0" />
1014
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.1" />
1115
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.1" />
1216
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.1">
1317
<PrivateAssets>all</PrivateAssets>
1418
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1519
</PackageReference>
1620
</ItemGroup>
17-
18-
<ItemGroup>
19-
<ProjectReference Include="..\..\..\..\src\CommunityToolkit.Datasync.Server.Abstractions\CommunityToolkit.Datasync.Server.Abstractions.csproj" />
20-
<ProjectReference Include="..\..\..\..\src\CommunityToolkit.Datasync.Server.EntityFrameworkCore\CommunityToolkit.Datasync.Server.EntityFrameworkCore.csproj" />
21-
<ProjectReference Include="..\..\..\..\src\CommunityToolkit.Datasync.Server.NSwag\CommunityToolkit.Datasync.Server.NSwag.csproj" />
22-
<ProjectReference Include="..\..\..\..\src\CommunityToolkit.Datasync.Server.Swashbuckle\CommunityToolkit.Datasync.Server.Swashbuckle.csproj" />
23-
<ProjectReference Include="..\..\..\..\src\CommunityToolkit.Datasync.Server\CommunityToolkit.Datasync.Server.csproj" />
24-
</ItemGroup>
25-
2621
</Project>

0 commit comments

Comments
 (0)