Skip to content

Move the solution to the .slnx format - #326

Merged
electricessence merged 1 commit into
masterfrom
chore/slnx
Dec 5, 2026
Merged

electricessence merged 1 commit into
masterfrom
chore/slnx

Conversation

@electricessence

Copy link
Copy Markdown
Collaborator

What

Open.Database.Extensions.sln becomes Open.Database.Extensions.slnx (dotnet sln migrate); the .sln is removed in the same change (git keeps it in history).

Why

The .slnx is the XML solution format: short, readable, and it merges with far fewer conflicts than the .sln, whose project GUIDs and per-configuration lines collide whenever two branches add a project. It needs Visual Studio 17.13 or later, or a .NET SDK from 9.0.200; the repository pins 11.0.100.

Same solution

The same ten projects (Source/Core, MSSqlClient, Channel, Dataflow, Extensions, Generator; Tests/Core.Tests, Generator.Models, Generator.Tests, LegacyCompiler.Tests) in the same two folders (Tests, Solution Items with .editorconfig, README.md, Source/Directory.Build.props). Source/SqlClient stays out. The old file mapped every project to Any CPU for all six configuration pairs, which is what the .slnx declares by default (checked against the old file's 60 mappings).

References

Nothing in the workflows, docfx.json, the docs or the project files named the .sln: CI builds each project, so no workflow change is needed. CONTRIBUTING.md now names the .slnx for the Visual Studio MSBuild check. The local gate and scan scripts are updated outside the repository.

Checks (head 5fb98d4)

  • Gate on the .slnx: Release and Debug builds 0 warnings, Core.Tests net11.0 Release 16279 passed (Debug 16258 passed, 16 skipped), 267 sample checks, dotnet format style and analyzers 0 findings, docfx 0 warnings.
  • Visual Studio 2026 MSBuild loads and builds the .slnx whole (Debug), 0 errors: run again by hand after the gate, as the gate's error-only log is empty either way.
  • Roslyn scan 0 actionable; Roslynator 0 findings on every project; style scan clean; leak check clean.
  • Not run: a swarm. The change is a mechanical file move; the parity check and the builds above are the evidence. CI will build and test it.

🤖 Generated with Claude Code

Open.Database.Extensions.sln becomes Open.Database.Extensions.slnx (`dotnet sln migrate`), with the same projects and the same two folders (Tests, Solution Items); Source/SqlClient stays out. The XML format is easier to read and merges with fewer conflicts. It needs Visual Studio 17.13 or later, or a .NET SDK from 9.0.200; the repository pins 11.0.100. Nothing in the workflows, the docs build or the project files named the .sln (CI builds each project), so only CONTRIBUTING.md changes: it names the solution file for the Visual Studio MSBuild check.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@electricessence
electricessence merged commit 7f0d636 into master Dec 5, 2026
9 checks passed
@electricessence
electricessence deleted the chore/slnx branch December 5, 2026 20:42
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