Skip to content

Prepare the build for .NET 11 (deterministic timestamps, SDK vulnerability check) - #44

Merged
iancooper merged 1 commit into
mainfrom
port/f35bc00d-net11-build-props
Sep 27, 2026
Merged

iancooper merged 1 commit into
mainfrom
port/f35bc00d-net11-build-props

Conversation

@iancooper

Copy link
Copy Markdown
Member

Partial port of App-vNext/Polly@f35bc00d (upstream App-vNext/Polly#3225), from upstream sync #1. Refs #28.

What

  • Directory.Build.props: adds <DeterministicTimestamp>true</DeterministicTimestamp> to the CI == true group. The file is now byte-identical to upstream's.
  • eng/Common.props: adds <CheckSdkVulnerabilities>true</CheckSdkVulnerabilities>.

Both are .NET 11 groundwork and have no effect today. SDK 10.0.401 doesn't define CheckSdkVulnerabilities at all. A CI=true pack of Paramore.Fences.Core stamps package entries with the pack time both with and without DeterministicTimestamp, so this SDK doesn't act on the property either. Neither property can raise a warning in CI under global.json's 10.0.400 SDK.

Not ported here

Upstream's commit also edits ContextDictionarySpecs.cs, PolicyOverloadSmokeSpecs.cs and Timeout/TimeoutOverloadSmokeSpecs.cs under test/Polly.Specs. Those files were created upstream by App-vNext/Polly@1a80392b (the xunit v3 migration) and don't exist in Fences yet. Those edits will land with that port, tracked in #34.

Checks

  • Build config only. No source, test, public API or dependency change.
  • dotnet build Fences.slnx -warnaserror is clean both normally and with CI=true. dotnet pack succeeds under CI=true.

🤖 Generated with Claude Code

… only)

Adds DeterministicTimestamp to the CI property group and
CheckSdkVulnerabilities to eng/Common.props. Neither has an effect on the
current 10.0.4xx SDK; both take effect with the .NET 11 SDK.

Partial port: upstream also edits three Polly.Specs files that were created
by App-vNext/Polly@1a80392b (xunit v3) and do not exist in Fences yet. Those
edits land with that port, tracked in #34.

Upstream: App-vNext/Polly#3225. Refs #28.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@iancooper
iancooper merged commit 5b4d2d7 into main Sep 27, 2026
23 checks passed
@iancooper
iancooper deleted the port/f35bc00d-net11-build-props branch September 27, 2026 13:52
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant