Migrate to .slnx solution file format#82
Merged
BenjaminMichaelis merged 5 commits intoOct 6, 2025
Conversation
Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] run
Add .slnx file using dotnet sln migrate
Oct 6, 2025
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)
Member
|
@copilot maybe we can drop the .sln file and just keep the .slnx? We get this otherwise. Run dotnet restore |
Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
Contributor
Author
Removed the .sln file as suggested. Now only the .slnx file remains, which resolves the "more than one project or solution file" error in CI/CD. Verified that |
Copilot
AI
changed the title
Add .slnx file using dotnet sln migrate
Migrate to .slnx solution file format
Oct 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR migrates the solution to the new
.slnxfile format by runningdotnet sln migrateas per the .NET 9 documentation. The legacy.slnfile has been removed to avoid CI/CD ambiguity errors.What Changed
IntelliTect.TestTools.Console.slnxusingdotnet sln migrateIntelliTect.TestTools.Console.slnfile to prevent "more than one solution file" errors in CI/CD pipelinesAbout .slnx Format
The
.slnxformat is the new XML-based solution file format introduced in .NET 9 that offers several advantages:Verification
The solution builds and tests successfully with the new format:
dotnet restore dotnet build --configuration Release dotnet test --no-build --configuration ReleaseAll projects (IntelliTect.TestTools.Console and IntelliTect.TestTools.Console.Tests) and solution items are preserved in the new format. All 32 tests pass successfully.
Original prompt
💡 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 in the docs.