Repository navigation
Version 11.0.1: every package dependency updated, and the source generator built for Roslyn 5.12 too - #328
Merged
Conversation
…ge management) The versions of all packages now live in one file; a project names the package and keeps its PrivateAssets / IncludeAssets. No version changes. Two exceptions stay beside the reference that needs them: Core.Tests builds against Roslyn 5.3.0 (the generator and its tests stay on 4.14.0) and the documentation samples use Microsoft.Data.Sqlite 11.0.0 (EF Core's Sqlite provider needs it). The package under test in the consumer project takes its version from the command line, as a PackageVersion item in that project. No change to what is packed: the four packages (Core, MSSqlClient, Channel, Dataflow) were packed from this tree on top of c00b694 and compared entry by entry (SHA-256) with the 11.0.0 release files; every dll, targets file, pdb and dependency group is identical. The only difference is the nuspec's repository branch attribute (this tree is on a branch; the release was packed detached). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…em.* 11.0.0 (10.0.15 on netstandard2.1)
Each target gets the newest version its consumers can use:
- Microsoft.Data.SqlClient 7.1.1 -> 8.0.0 (MSSqlClient: net472 resolves its net462 build, net10.0 and net11.0 its net10.0 build).
- System.Security.Cryptography.Pkcs 10.0.14 -> 11.0.0, Microsoft.Bcl.AsyncInterfaces 10.0.14 -> 11.0.0.
- System.Linq.AsyncEnumerable, System.Threading.Channels, System.Collections.Immutable, System.Threading.Tasks.Dataflow: 10.0.14 -> 11.0.0 on netstandard2.0
(.NET Framework consumers) and the modern targets, and 10.0.14 -> 10.0.15 on netstandard2.1. The 11.0.0 packages warn at build time on a .NET 8 or .NET 9
project ("doesn't support net8.0"), and those are the netstandard2.1 build's consumers.
The comment on Core's netstandard references no longer says the floors stay low on purpose.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Microsoft.SourceLink.GitHub 10.0.403 -> 11.0.100; Microsoft.CodeAnalysis.PublicApiAnalyzers 3.3.4 -> 5.6.0; Microsoft.NET.Test.Sdk 18.11.0 -> 18.12.0; xunit.runner.visualstudio 4.0.1 -> 4.0.2; coverlet.collector 10.1.0 -> 10.1.1; Microsoft.Data.Sqlite 10.0.14 -> 11.0.0 (the samples already used it, so their override goes); CommunityToolkit.Mvvm 8.4.0 -> 8.4.2; Dapper 2.1.89 -> 2.1.100; the Roslyn the Core tests build against 5.3.0 -> 5.12.0. PublicApiAnalyzers 5.6.0 reports the members the compiler writes for a record struct (Equals, GetHashCode, ToString, == and !=) as undeclared public API. They have been part of the public API since 11.0.0, so the 47 of them (ColumnOrdinal, ExpressiveCommandBase.Param, MappedQuery, MappedQueryWithSkip, MappedQueryWithTake, MappedTable, MappedReader, MappedCommand) go into Core's PublicAPI.Shipped.txt. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…or the net472 consumer project xunit.v3, xunit.v3.assert and xunit.v3.extensibility.core 3.2.2 -> 4.0.4. The two assemblies that switch test parallelization off use the new attribute (Xunit.v3.Parallelization with Mode = ParallelMode.None), because CollectionBehavior.DisableTestParallelization is obsolete in 4.x. xUnit1069 (a test with a Timeout that does not reference TestContext.Current.CancellationToken in its own body) is silenced in Core.Tests, which reads the token through a file-level Ct property the analyzer does not follow, or bounds each wait itself; the reason sits beside the NoWarn. Microsoft.Data.Sqlite 11.0.0 supports .NET 10 and later only (NU1202 on net472), so the package consumer project, which also builds for net472, takes 10.0.15 there; every other target takes 11.0.0. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…oslyn 5.12 Core packs the generator under analyzers/dotnet/roslyn4.14/cs (older SDKs and Visual Studio, kept as the floor) and now also under analyzers/dotnet/roslyn5.12/cs. NuGet gives a consumer the highest folder its compiler supports, so SDK 11 loads the Roslyn 5.12 build. The new Source/Generator.Roslyn5 project compiles the same sources against Microsoft.CodeAnalysis.CSharp 5.12.0. Generator.Tests runs against either build (-p:OdxGeneratorRoslyn=5.12), the LegacyCompiler tests keep covering the old compilers, and the generator job of tests.yml runs both builds and checks that the Core package holds both folders. The CI test steps use the Microsoft.Testing.Platform command line (--project, --report-xunit-trx) that xunit.v3 4.x needs. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…fx 2.82.0, release notes xunit.v3 4.x on the .NET 10 and later SDKs refuses the VSTest mode of dotnet test, so global.json selects the Microsoft.Testing.Platform runner (dotnet test with --project) next to the 11.0.100 SDK band. The consumer project's usage note follows. docfx 2.81.0 -> 2.82.0 (the newest). VersionPrefix 11.0.0 -> 11.0.1, and the release notes have a Version 11.0.1 section: the dependency table with every per-target split and its reason, what a consumer sees (SqlClient 8.0.0), the second generator build, and the tools. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… the tests xUnit2033: five asserts now use the value Assert.Single and Assert.IsType return instead of reading it again (same checks). MVVMTK0042: the generator tests' toolkit models keep the field form on purpose; the rule is suppressed there, with the reason beside it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… is the one NuGet selects; release notes say only what the repository shows CI: the package consumer tests run once per target framework (a single run wrote each variant's TRX twice, the second over the first); the Roslyn 5.12 generator test results are uploaded; the generator job checks that the analyzer NuGet resolves for the consumer is the roslyn5.12 build. Generator.Roslyn5 compiles the sources of Source/Generator recursively. Generator.Tests refuses an OdxGeneratorRoslyn value other than 5.12 or empty. Release notes: a blank line before the 11.0.0 heading, the exception to "newest" stated beside it, the tools list marked as the main ones. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…vulnerable one SqlClient 8.0.0 depends on System.Security.Cryptography.Pkcs 10.0.15 (net462, net10.0, netstandard2.0), which has no advisory (`dotnet list package --vulnerable --include-transitive` on a project that references SqlClient 8.0.0 alone: none). The pin therefore no longer fixes a vulnerability; it stays so that MSSqlClient and the projects that use SqlClient take the newest Pkcs. The three comments say so. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Version 11.0.1 is a dependency update: every package of the repository is at the newest version that supports the target framework it is built for, the versions live in one file (
Directory.Packages.props, central package management), and the source generator ships built for Roslyn 5.12 as well as Roslyn 4.14. The public API of Core, Channel, Dataflow and MSSqlClient and what they do are unchanged.Shipped packages
Per-target splits, and why.
Condition="'$(TargetFramework)' == 'netstandard2.1'"pair per package inDirectory.Packages.props, with the reason in a comment.SqlClient 8.0.0 changes that can reach MSSqlClient users (all in the release notes section): .NET 10 minimum on modern .NET;
MultiSubnetFailoveron by default;UseOverallConnectTimeoutForPoolWaiton by default (an open that waits for the pool can time out sooner);TransparentNetworkIPResolutionoff by default on .NET Framework; Azure attestation moved toMicrosoft.Data.SqlClient.Extensions.Azure; SQL Server 2005 and Type System Version removed;SqlParameterCollection.RemoveAtexception type;SQLCLIENT001warning for mixed family versions.Encrypt/TrustServerCertificatedefaults are not listed as changed in its release notes.Source generator
Core packs the generator twice from the same sources:
analyzers/dotnet/roslyn4.14/cs(floor, built against Microsoft.CodeAnalysis.CSharp 4.14.0, unchanged) and newanalyzers/dotnet/roslyn5.12/cs(new projectSource/Generator.Roslyn5, 5.12.0). NuGet gives a compiler the highest folder it supports; on the .NET 11 SDK ofglobal.jsonthe consumer gets the 5.12 build (checked, see CI below).Generator.Testsruns on either build:-p:OdxGeneratorRoslyn=5.12(any other value is refused). Microsoft.CodeAnalysis.Analyzers goes 3.11.0 → 5.12.0 for both generator projects (build-only,PrivateAssets=all, 0 new diagnostics).Build and test tools (not shipped)
Microsoft.SourceLink.GitHub 10.0.403 → 11.0.100; Microsoft.CodeAnalysis.PublicApiAnalyzers 3.3.4 → 5.6.0; Microsoft.NET.Test.Sdk 18.11.0 → 18.12.0; xunit.v3 3.2.2 → 4.0.4 (xunit.v3.assert / extensibility.core too); xunit.runner.visualstudio 4.0.1 → 4.0.2; coverlet.collector 10.1.0 → 10.1.1; Microsoft.Data.Sqlite 10.0.14 → 11.0.0 (10.0.15 on net472); Microsoft.CodeAnalysis.CSharp (Core.Tests) 5.3.0 → 5.12.0; CommunityToolkit.Mvvm 8.4.0 → 8.4.2; Dapper 2.1.89 → 2.1.100 (benchmarks; published benchmark pages still name the measured 2.1.89 run, which is history, not re-timed); docfx 2.81.0 → 2.82.0. Already newest: BenchmarkDotNet 0.15.8, Dapper.AOT 1.1.0, FastExpressionCompiler 6.0.0, ZLinq 1.6.1, NSubstitute 6.2.0, EF Core and Mvc.Testing 11.0.0. SDK band
11.0.100is the newest installed; GitHub Actions majors are checkout v7, setup-dotnet v6, upload-artifact v7 (unchanged; none looked stale).Things that are not a plain version bump
dotnet testis refused).global.jsonselects the runner; everydotnet testintests.ymlis nowdotnet test --project <path> --report-xunit-trx --report-xunit-trx-filename <name>.trx --results-directory <dir>. The consumer tests run once per target framework (a single run wrote each TRX twice).[assembly: Xunit.v3.Parallelization(Mode = Xunit.Sdk.ParallelMode.None)]in Generator.Tests and PackageConsumer.Tests keeps these two assemblies serial (the generator counters are process-wide, so each test reads its own deltas), as the line above it in each file says.xUnit1069in Core.Tests (NoWarn, comment beside it);MVVMTK0042inParityTests.Partial.cs(the toolkit models use the field form on purpose). FivexUnit2033findings were fixed in the tests (same checks, return value used).PublicAPI.Shipped.txt: +47 lines, the compiler-synthesized members (Equals,GetHashCode,ToString,==,!=) of eightrecord structtypes (ColumnOrdinal,ExpressiveCommandBase.Param,MappedQuery<T>,MappedQueryWithSkip<T>,MappedQueryWithTake<T>,MappedReader<T>,MappedCommand<T>,MappedTable<T>) that PublicApiAnalyzers 5.6.0 now tracks (RS0016 without them). The members exist in 11.0.0 already: this PR changes no.csfile underSource/, so no public member is added or removed.System.Security.Cryptography.Pkcs. SqlClient 8.0.0 depends on Pkcs 10.0.15 (net462, net10.0, netstandard2.0), anddotnet list package --vulnerable --include-transitiveon a project that references SqlClient 8.0.0 alone reports nothing. The pin no longer fixes a vulnerability; it stays so these projects take the newest Pkcs (11.0.0), and the comment inDirectory.Packages.propssays so.Source/SqlClient(out of the build, 4.9.1 stays).Evidence (tree
efb231d9, basec00b6943= origin/master)dotnet formatstyle + analyzers at info on every project 0 findings (after the test fixes above), docfx 0 warnings, samples 267/267, Benchmarks build, Visual Studio MSBuild on the slnx 0 errors, Roslyn scan 0 actionable (28 TFM-specific IDE0370/IDE0390 reports, which cannot be fixed on every target), Roslynator 0, style scan clean, leak check clean on every commit.ODX_REQUIRE_SQL=1): Core.Tests Release 16279 passed, Debug 16258 passed (same as 11.0.0; xunit 4 lists the Explicit probe tests as skipped, 4 in Release, 20 in Debug, which VSTest did not list; no passing test lost); 289 LocalDB/SQL tests pass in each configuration. LegacyCompiler net472 46, net8.0 46, net10.0 46, net11.0 48, all pass. Generator.Tests 189/189 on the 4.14 build and 189/189 on the 5.12 build.dotnet list package --outdatedper project and target: nothing direct is older than the newest version for its target; what remains is deliberate (netstandard2.1 System.* 10.0.15, net472 Sqlite 10.0.15, the 4.14 generator's Roslyn floor) or transitive and owned by another package (SqlClient 8.0.0's own 10.0.15 dependencies, test-platform dependencies).Not covered
tests.ymlhas not run on GitHub: the new command forms were exercised locally, the workflow itself runs for the first time on this PR.🤖 Generated with Claude Code