Skip to content

Target net11.0 only - #79

Merged
Mpdreamz merged 1 commit into
mainfrom
net11
Nov 14, 2026
Merged

Mpdreamz merged 1 commit into
mainfrom
net11

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

The tool targets net11.0 only. The native-AOT packages for Linux, Windows and macOS arm64 are unaffected. The framework-dependent assembly-differ.any fallback for every other platform now needs the .NET 11 runtime.

Prompt summary: Move everything to net11.

Why

The tool built for net10.0 and net11.0. Every build, generatepackages and the fallback package carried both, and the self-diff in generateapichanges compared the net10.0 build while the tests and the container used net11.0.

What

One target framework

assembly-differ.csproj sets TargetFramework to net11.0, and Paths.ManagedTargetFrameworks mirrors it, so fixAnyPackageSigning patches one framework. generateapichanges compares the net11.0 build with the net11.0 assets of the last release.

Docs

The README says the fallback needs the .NET 11 runtime, and the packages table lists net11.0.

Verify

./build.sh ci
unzip -l build/output/assembly-differ.any.*.nupkg | grep tools/   # only tools/net11.0

Breaking: On a platform without a native-AOT package, such as macOS on Intel, installing the tool now needs the .NET 11 runtime instead of .NET 10 or 11.

🤖 Generated with Claude Code

The tool built for net10.0 and net11.0, so every build, package and
self-diff did each twice. The native-AOT packages need no runtime at all;
only the framework-dependent fallback for other platforms now needs the
.NET 11 runtime.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Mpdreamz Mpdreamz added the breaking Breaks a public API or behaviour (0.x: minor bump, 1.x+: major) label Nov 14, 2026
@Mpdreamz
Mpdreamz merged commit b1fbe24 into main Nov 14, 2026
6 of 7 checks passed
@Mpdreamz
Mpdreamz deleted the net11 branch November 14, 2026 08:30
Mpdreamz added a commit that referenced this pull request Nov 14, 2026
…ter (#91)

A solution build now builds the tool once. Main's CI failed once because
two builds of it wrote `assembly-differ.deps.json` at the same time.

**Prompt summary:** Main's CI failed on the commit of
[#88](#88) while getting
assembly-differ to 1.0; this fixes the cause.

## Why
The `build` job failed with `MSB4018: The "GenerateDepsFile" task failed
unexpectedly ... The process cannot access the file
'.../bin/Release/net11.0/assembly-differ.deps.json' because it is being
used by another process`. The test project references the tool with
`SetTargetFramework="TargetFramework=net11.0"`. Since
[#79](#79) made the tool
single-target, that global property makes MSBuild treat the reference as
a second instance of the project, which it builds in parallel with the
solution's own instance.

## What

#### One instance
The reference keeps only `ReferenceOutputAssembly="false"`, and a
comment says why it must carry no global properties. A local `dotnet
build -c Release -v n` shows one build instance of the tool fewer than
on main, 2 instead of 3.

## Verify
```bash
dotnet build -c Release
mise run test
```

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Breaks a public API or behaviour (0.x: minor bump, 1.x+: major)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant