Skip to content

Commit 81bde54

Browse files
adrianhallahall
andauthored
fix: resolve remaining sample package drift and Microsoft.OpenApi NU1903 (#489) (#493)
- Bump samples/todoapp-mvc Microsoft.EntityFrameworkCore.SqlServer 10.0.3 -> 10.0.9 to match the repo's EFCoreVersion (missed in #485). - Bump stray Microsoft.AspNetCore.Components.WebAssembly*/Microsoft.Extensions.Http pins in todoapp-blazor-wasm from 10.0.3 -> 10.0.9. - Bump Microsoft.EntityFrameworkCore (Avalonia), Microsoft.Extensions.Logging.Debug (MAUI), Microsoft.Extensions.DependencyInjection (WinUI3), and System.Text.Json/System.Formats.Asn1/System.IO.Packaging (Uno, local CPM) from 10.0.3 -> 10.0.9 across the todoapp client-platform samples. - Bump CommunityToolkit.Datasync.Client 10.0.0 -> 10.1.0 across every client sample (Avalonia, MAUI, Uno, WPF, WinUI3, todoapp-tutorial/ClientApp, todoapp-blazor-wasm/Client) to match the latest published package, alongside the already-updated 10.1.0 server samples. - Pin Microsoft.OpenApi to 2.7.5 in root Directory.Packages.props to resolve the NU1903 high-severity advisory (GHSA-v5pm-xwqc-g5wc) on the 2.0.0 version floated transitively via Microsoft.AspNetCore.OpenApi/NSwag.AspNetCore/ Swashbuckle.AspNetCore. CentralPackageTransitivePinningEnabled propagates this through project references into samples/datasync-server and samples/datasync-server-cosmosdb-singlecontainer without needing per-sample pins; verified every restored project.assets.json in the repo now resolves Microsoft.OpenApi/2.7.5. The remaining NU1903 advisory (SQLitePCLRaw.lib.e_sqlite3, GHSA-2m69-gcr7-jv3q) has no patched version available and is tracked separately in #492. Verified: dotnet restore/build/test on Datasync.Toolkit.sln (2280+ tests passing across all suites), plus restore+build for every affected sample solution/project (todoapp-mvc, todoapp-blazor-wasm, datasync-server, datasync-server-cosmosdb-singlecontainer, todoapp-tutorial, TodoApp.Avalonia, TodoApp.Avalonia.Desktop, TodoApp.WPF). TodoApp.MAUI/TodoApp.Uno mobile TFMs and TodoApp.WinUI3 build could not be fully exercised in this environment due to missing Android/iOS/Windows workloads, but package restore succeeded up to that point, confirming the version pins resolve cleanly. Co-authored-by: ahall <ahall@cloudflare.com>
1 parent e0be104 commit 81bde54

10 files changed

Lines changed: 26 additions & 18 deletions

File tree

Directory.Packages.props

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@
3131
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="$(DotNetVersion)" />
3232
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.6.0" />
3333
<PackageVersion Include="Microsoft.OData.Core" Version="$(ODataVersion)" />
34+
<!--
35+
Microsoft.AspNetCore.OpenApi/NSwag.AspNetCore/Swashbuckle.AspNetCore all float a transitive
36+
dependency on Microsoft.OpenApi 2.0.0, which has a known high-severity vulnerability (NU1903,
37+
GHSA-v5pm-xwqc-g5wc - a crafted OpenAPI document with a circular schema reference can crash the
38+
process). Pin explicitly to the patched 2.x release; CentralPackageTransitivePinningEnabled above
39+
forces this version across all transitive references.
40+
-->
41+
<PackageVersion Include="Microsoft.OpenApi" Version="2.7.5" />
3442
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="10.0.300" />
3543
<PackageVersion Include="Microsoft.Spatial" Version="8.4.3" />
3644
<PackageVersion Include="Newtonsoft.Json" Version="13.0.4" />

samples/todoapp-blazor-wasm/TodoApp.BlazorWasm.Client/TodoApp.BlazorWasm.Client.csproj

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

99
<ItemGroup>
10-
<PackageReference Include="CommunityToolkit.Datasync.Client" Version="10.0.0" />
11-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.3" />
12-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.3" PrivateAssets="all" />
13-
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.3" />
10+
<PackageReference Include="CommunityToolkit.Datasync.Client" Version="10.1.0" />
11+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.9" />
12+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.9" PrivateAssets="all" />
13+
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.9" />
1414
</ItemGroup>
1515

1616
<ItemGroup>

samples/todoapp-blazor-wasm/TodoApp.BlazorWasm.Server/TodoApp.BlazorWasm.Server.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<PackageReference Include="CommunityToolkit.Datasync.Server.EntityFrameworkCore" Version="10.1.0" />
1212
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.9" />
1313
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="10.0.9" />
14-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="10.0.3" />
14+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="10.0.9" />
1515
</ItemGroup>
1616

1717
<ItemGroup>

samples/todoapp-mvc/TodoApp.Service/TodoApp.Service.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<ItemGroup>
1010
<PackageReference Include="CommunityToolkit.Datasync.Server" Version="10.1.0" />
1111
<PackageReference Include="CommunityToolkit.Datasync.Server.EntityFrameworkCore" Version="10.1.0" />
12-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.3" />
12+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.9" />
1313
<PackageReference Include="Microsoft.Web.LibraryManager.Build" Version="3.0.71" />
1414
</ItemGroup>
1515

samples/todoapp-tutorial/ClientApp/ClientApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="CommunityToolkit.Datasync.Client" Version="10.0.0" />
12+
<PackageReference Include="CommunityToolkit.Datasync.Client" Version="10.1.0" />
1313
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
1414
</ItemGroup>
1515

samples/todoapp/TodoApp.Avalonia/TodoApp.Avalonia/TodoApp.Avalonia.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.3.0" />
1717
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
1818
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.3.0" />
19-
<PackageReference Include="CommunityToolkit.Datasync.Client" Version="10.0.0" />
19+
<PackageReference Include="CommunityToolkit.Datasync.Client" Version="10.1.0" />
2020
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
21-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.3" />
21+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.9" />
2222
</ItemGroup>
2323
</Project>

samples/todoapp/TodoApp.MAUI/TodoApp.MAUI.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
</ItemGroup>
5151

5252
<ItemGroup>
53-
<PackageReference Include="CommunityToolkit.Datasync.Client" Version="10.0.0" />
53+
<PackageReference Include="CommunityToolkit.Datasync.Client" Version="10.1.0" />
5454
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
5555
<PackageReference Include="Microsoft.Maui.Controls" Version="10.0.40" />
56-
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="10.0.3" />
56+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="10.0.9" />
5757
</ItemGroup>
5858

5959
<ItemGroup>

samples/todoapp/TodoApp.Uno/Directory.Packages.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
<ItemGroup>
1111
<PackageVersion Include="CommunityToolkit.WinUI.Behaviors" Version="8.2.250402" />
1212
<PackageVersion Include="CommunityToolkit.WinUI.Converters" Version="8.2.250402" />
13-
<PackageVersion Include="CommunityToolkit.Datasync.Client" Version="10.0.0" />
13+
<PackageVersion Include="CommunityToolkit.Datasync.Client" Version="10.1.0" />
1414
<PackageVersion Include="Refit" Version="8.0.0" />
15-
<PackageVersion Include="System.Formats.Asn1" Version="10.0.3" />
16-
<PackageVersion Include="System.IO.Packaging" Version="10.0.3" />
15+
<PackageVersion Include="System.Formats.Asn1" Version="10.0.9" />
16+
<PackageVersion Include="System.IO.Packaging" Version="10.0.9" />
1717
<PackageVersion Include="System.Private.Uri" Version="4.3.2" />
18-
<PackageVersion Include="System.Text.Json" Version="10.0.3" />
18+
<PackageVersion Include="System.Text.Json" Version="10.0.9" />
1919
</ItemGroup>
2020
</Project>

samples/todoapp/TodoApp.WPF/TodoApp.WPF.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010

1111
<ItemGroup>
1212
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
13-
<PackageReference Include="CommunityToolkit.Datasync.Client" Version="10.0.0" />
13+
<PackageReference Include="CommunityToolkit.Datasync.Client" Version="10.1.0" />
1414
</ItemGroup>
1515
</Project>

samples/todoapp/TodoApp.WinUI3/TodoApp.WinUI3.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
</ItemGroup>
3030

3131
<ItemGroup>
32-
<PackageReference Include="CommunityToolkit.Datasync.Client" Version="10.0.0" />
32+
<PackageReference Include="CommunityToolkit.Datasync.Client" Version="10.1.0" />
3333
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
3434
<PackageReference Include="CommunityToolkit.WinUI.Behaviors" Version="8.2.250402" />
3535
<PackageReference Include="CommunityToolkit.WinUI.Converters" Version="8.2.250402" />
36-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.3" />
36+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.9" />
3737
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.7.250401001" />
3838
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.3916" />
3939
<Manifest Include="$(ApplicationManifest)" />

0 commit comments

Comments
 (0)