Skip to content

build: BuildSdk 2.2.0, latest dependencies, and stable-release prep - #28

Closed
kieronlanning wants to merge 6 commits into
mainfrom
build/buildsdk-2.2-and-deps
Closed

kieronlanning wants to merge 6 commits into
mainfrom
build/buildsdk-2.2-and-deps

Conversation

@kieronlanning

Copy link
Copy Markdown
Contributor

Prepares the project for its stable 1.0.0 line.

Build

  • Purview.BuildSdk 2.2.0. 2.2.0 makes runtime-async and the C# 15 updated memory-safety rules opt-in, so src/Directory.Build.props now enables both (PurviewRuntimeAsync=true, MemorySafetyRules=2) for the net11.0 builds. BuildFeatureTests guards both.
  • Supported target-framework set (net10.0;net11.0) selected repo-wide. Wsl.csproj derives its portable and Windows targets from it.
  • Dependencies on their latest releases, including Aspire.Hosting 17.0.0, Testcontainers 4.17.0, Microsoft.Extensions.Telemetry.Abstractions 11.0.0 and Purview.Telemetry.SourceGenerator 6.0.1. Every shipped dependency still ships a net10.0 asset.

Fixes

  • Docker backend: a missing daemon is reported as "No Docker daemon was found…" with how to fix it, instead of a bare NullReferenceException. Testcontainers returns a null endpoint; all call sites now go through DockerEndpoint.
  • AutoSample: a build-only reference orders Wsl's net10.0-windows build first. This fixes the intermittent "The Windows implementation is not built" failure in the WSLC contract job.

CI and packaging

  • pr.yml also builds and tests every push to main. Main runs are not cancelled, and nothing is published from main.
  • Version 1.0.0-prerelease.14. PackageProjectUrl is now https://purview.dev/projects/containers/.

Docs

  • Dropped the experimental, preview and no-support-guarantee notices everywhere. Versions stay on -prerelease.N until the stable 1.0.0, which includes the WSL backend.

Validation (local, Windows)

  • just pipeline-pack-validate: build, lint, unit tests, pack, 30/30 packages valid.
  • just verify-consumers: 25/25. That run predates the last four commits; the build-affecting changes since are the Docker error handling, the AutoSample reference, the version bump and the project URL.
  • No vulnerable packages, including transitive ones.
  • actionlint passes on pr.yml.
  • Not run locally: the Docker integration suite. This machine's daemon isn't discovered by Testcontainers, and it fails the same way on Testcontainers 4.16.0. This PR's integration-docker and integration-wsl jobs are the real-container check.

BuildSdk 2.2.0 makes runtime-async and the C# 15 updated memory-safety
rules opt-in, so enable both explicitly for the net11.0 builds. Select
the Supported target-framework set (net10.0;net11.0) repo-wide and
derive the WSL backend's portable and Windows targets from it.

Guard the memory-safety rules alongside runtime-async in
BuildFeatureTests, and update the docs that described them as SDK
defaults. Also bumps the purview.build and dotnet-inspect tools.
Aspire.Hosting 17.0.0, Testcontainers 4.17.0,
Microsoft.Extensions.Telemetry.Abstractions 11.0.0,
Purview.Telemetry.SourceGenerator 6.0.1, SourceLink 11.0.100, TUnit
1.87.0 and the test-only clients. Every shipped dependency still ships
a net10.0 asset, so the .NET 10 floor is unchanged.
…build

Testcontainers returns a null endpoint when no daemon is discovered, so
every Docker call site failed with a bare NullReferenceException.
Resolve it in one place (DockerEndpoint) and throw a
ContainerBackendUnavailableException that says how to fix it;
GetInfoAsync also names the endpoint on a timeout or refused ping.

AutoSample copies Wsl's net10.0-windows output but nothing ordered that
build first, so a parallel solution build could fail with "The Windows
implementation is not built". Add a build-only project reference.
pr.yml now also runs on push to main, so main's status reflects what was
merged. Main runs are never cancelled by a newer one; PR runs still are.
A push to main never publishes.
PackageProjectUrl now points at https://purview.dev/projects/containers/,
matching the homepage in package.json.
Remove the experimental, preview and no-support-guarantee notices from
the README, wiki, package READMEs and skills. Versions stay on a
-prerelease.N suffix until the stable 1.0.0, which includes the WSL
Containers backend. Refresh stale version examples to prerelease.14 and
describe the push-to-main build.
@kieronlanning

Copy link
Copy Markdown
Contributor Author

Superseded by #29, which contains every commit from this branch (it was branched from it). Closing in favour of #29.

@kieronlanning
kieronlanning deleted the build/buildsdk-2.2-and-deps branch November 18, 2026 16:43
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