Skip to content

Dynamic LINQ: retarget net10.0, System.Linq.Dynamic.Core 1.7.4, Program.cs prints the article's outputs - #2227

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/77104-using-dynamic-linq
Open

vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/77104-using-dynamic-linq

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Updates the sample behind https://code-maze.com/using-dynamic-linq/.

Both projects move from net6.0 to net10.0.

System.Linq.Dynamic.Core goes from 1.2.21 to 1.7.4, the current stable release on NuGet (read 2026-09-23). 1.2.21 sits inside both published advisory ranges for the package, and 1.7.4 sits outside both, per the GitHub Advisory Database re-queried today:

Test packages go to current stable, re-queried on NuGet the day this PR opened: Microsoft.NET.Test.Sdk 18.10.1 (the batch policy named 18.10.0; the re-query found 18.10.1 and that is what ships), NUnit 4.6.1, NUnit3TestAdapter 6.3.0, NUnit.Analyzers 4.15.0, coverlet.collector 10.0.1. NUnit stays the test framework for this folder, and no assertion changes: Assert.AreEqual and Assert.NotNull compile on NUnit 4.6.1 with 0 warnings.

Program.cs used to print only "Application Started". It now instantiates TestData and prints the three results the article quotes: the Name and Department projection, the "Department desc, Name" sort, and the combined ParseLambda filter. The article's output blocks now have a source that can be re-run. TestData.cs is unchanged.

Verified on SDK 10.0.302 against runtime 10.0.10: dotnet build -c Release is 0 errors and 0 warnings, dotnet test is 25 of 25 passing, and dotnet list package --vulnerable --include-transitive reports no vulnerable packages in either project.

Only this article's folder is touched.

…am.cs prints the article's outputs

- Both projects net6.0 to net10.0.
- System.Linq.Dynamic.Core 1.2.21 to 1.7.4. 1.2.21 sits inside both published
  advisory ranges: GHSA-w65q-jcmv-28gj / CVE-2023-32571 (critical, CVSS 9.8,
  >= 1.0.7.10 and < 1.3.0) and GHSA-4cv2-4hjh-77rx / CVE-2024-51417 (high, < 1.6.0).
- Test packages: Microsoft.NET.Test.Sdk 18.10.1, NUnit 4.6.1, NUnit3TestAdapter 6.3.0,
  NUnit.Analyzers 4.15.0, coverlet.collector 10.0.1. No assertion changes.
- Program.cs now prints the projection, the multi-property sort and the combined
  lambda filter that the article quotes, so its output blocks can be re-run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant