Skip to content

Commit 1058af9

Browse files
Add .slnx file for .NET 9+ compatibility alongside existing .sln file (#162)
This PR adds a modern XML-based solution file (`.slnx`) to the repository using the `dotnet solution migrate` command, as requested in the issue. The `.slnx` format is the new solution file format introduced in .NET 9 SDK. ## Changes - Generated `IntelliTect.Multitool.slnx` using `dotnet solution migrate IntelliTect.Multitool.sln` - The existing `IntelliTect.Multitool.sln` file is retained for backwards compatibility with older versions of Visual Studio and .NET SDK ## Benefits The `.slnx` format provides several advantages over the traditional `.sln` format: - **Human-readable XML structure** - easier to understand and parse - **Better for version control** - cleaner diffs and merge conflicts - **Modern format** - aligned with .NET 9+ tooling ## Compatibility Both solution files now coexist in the repository: - **`.sln` file** - maintains compatibility with .NET 8 SDK, Visual Studio 2022, and earlier versions - **`.slnx` file** - provides modern solution format for .NET 9+ SDK and future Visual Studio versions The repository continues to build successfully with .NET 8 SDK, ensuring no breaking changes for existing workflows. ## References - [Microsoft Documentation: dotnet sln migrate](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-sln#migrate) <!-- START COPILOT CODING AGENT SUFFIX --> <details> <summary>Original prompt</summary> > run `dotnet sln migrate` (https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-sln#migrate) to add in a .slnx file to live alongside our .sln file for now (.sln for backwards compatibility for now) </details> <!-- START COPILOT CODING AGENT TIPS --> --- 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
1 parent 399ad08 commit 1058af9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

IntelliTect.Multitool.slnx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Solution>
2+
<Folder Name="/Solution Items/">
3+
<File Path=".github/workflows/build-and-test.yml" />
4+
<File Path=".github/workflows/deploy.yml" />
5+
<File Path="Directory.Build.props" />
6+
<File Path="Directory.Packages.props" />
7+
<File Path="global.json" />
8+
<File Path="README.md" />
9+
</Folder>
10+
<Project Path="IntelliTect.Multitool.Tests/IntelliTect.Multitool.Tests.csproj" />
11+
<Project Path="IntelliTect.Multitool/IntelliTect.Multitool.csproj" />
12+
</Solution>

0 commit comments

Comments
 (0)