Summary
Visual Studio 2026 (Insiders) now creates .slnx solution files by default.
Currently, TemporarySolutionFile uses Cake.ParseSolution(), which does not support .slnx files. Support is pending in cake-build/cake#4521 and will only be available after the next Cake.Common NuGet release.
Details
Microsoft now provides Microsoft.VisualStudio.SolutionPersistence (NuGet).
This package:
- Has no external dependencies (for net8.0 and above, at least).
- Can load both
.sln and .slnx files into its model.
- Can save solutions as either format.
Initial testing with @cheng-atf confirms it works as expected. Projects can be loaded and mapped into Cake's solution model with minimal effort.
However, TemporarySolutionFile is still used in CCBs during build for project exclusion.
Options
- Wait for Cake's first-party
.slnx support and continue to use Cake.ParseSolution().
- Bypass
Cake.ParseSolution() and adopt Microsoft.VisualStudio.SolutionPersistence, re-implementing ITemporarySolutionFile either in this repo or within CCBs.
Current Workaround
We currently save .sln files instead of .slnx in repositories.
Visual Studio 2026 allows "File -> Save As" to convert between formats.
Constraints
- The .NET SDK version on the build machine determines compatibility.
.slnx files require the .NET 9.0.200 SDK or later.
Request
Add support for .slnx files in TemporarySolutionFile, either by integrating Microsoft's SolutionPersistence package or by adopting Cake's native support once released.
Summary
Visual Studio 2026 (Insiders) now creates
.slnxsolution files by default.Currently,
TemporarySolutionFileusesCake.ParseSolution(), which does not support.slnxfiles. Support is pending in cake-build/cake#4521 and will only be available after the nextCake.CommonNuGet release.Details
Microsoft now provides
Microsoft.VisualStudio.SolutionPersistence(NuGet).This package:
.slnand.slnxfiles into its model.Initial testing with @cheng-atf confirms it works as expected. Projects can be loaded and mapped into Cake's solution model with minimal effort.
However,
TemporarySolutionFileis still used in CCBs during build for project exclusion.Options
.slnxsupport and continue to useCake.ParseSolution().Cake.ParseSolution()and adoptMicrosoft.VisualStudio.SolutionPersistence, re-implementingITemporarySolutionFileeither in this repo or within CCBs.Current Workaround
We currently save
.slnfiles instead of.slnxin repositories.Visual Studio 2026 allows "File -> Save As" to convert between formats.
Constraints
.slnxfiles require the .NET 9.0.200 SDK or later.Request
Add support for
.slnxfiles inTemporarySolutionFile, either by integrating Microsoft'sSolutionPersistencepackage or by adopting Cake's native support once released.