Skip to content

Migrate solution from .sln to .slnx format#167

Merged
LittleLittleCloud merged 2 commits intomainfrom
copilot/convert-sln-to-slnx
Nov 22, 2025
Merged

Migrate solution from .sln to .slnx format#167
LittleLittleCloud merged 2 commits intomainfrom
copilot/convert-sln-to-slnx

Conversation

Copy link
Contributor

Copilot AI commented Nov 22, 2025

Migrates to the new XML-based .slnx solution format introduced in .NET 9, replacing the legacy MSBuild .sln format.

Changes

  • Solution file: Generated RazorConsole.slnx via dotnet sln migrate, removed RazorConsole.sln

    • 93% size reduction (8,389 → 632 bytes)
    • Same 6 projects: Core, Gallery, Tests, and 3 examples
  • CI/CD workflows: Updated .github/workflows/ci.yml and release.yml to reference .slnx

  • Documentation: Updated references in CONTRIBUTING.md, .github/copilot-instructions.md, and design-doc/project-overview.md

The new format is functionally equivalent—all build, test, and format commands work identically with .slnx as the solution parameter.

Original prompt

This section details on the original issue you should resolve

<issue_title>[Feature]: Convert sln to slnx</issue_title>
<issue_description>### Feature Description

Slnx is new default way of managing solutions. Make sense to use new features
https://devblogs.microsoft.com/dotnet/introducing-slnx-support-dotnet-cli/

Problem Statement

No response

Proposed Solution

dotnet sln migrate
rm -f *.sln
git add *
git commit -m "Migrate to slnx"
git push

Alternatives Considered

No response

Additional Context

No response

Contribution

  • I'd be willing to contribute this feature</issue_description>

Comments on the Issue (you are @copilot in this section)

@ParadiseFallen @LittleLittleCloud are you okay with this? @LittleLittleCloud Yes!

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: LittleLittleCloud <16876986+LittleLittleCloud@users.noreply.github.com>
Copilot AI changed the title [WIP] Convert solution from sln to slnx format Migrate solution from .sln to .slnx format Nov 22, 2025
@LittleLittleCloud LittleLittleCloud marked this pull request as ready for review November 22, 2025 21:34
Copilot AI review requested due to automatic review settings November 22, 2025 21:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR successfully migrates the solution from the legacy MSBuild .sln format to the new XML-based .slnx format introduced in .NET 9, achieving a 93% size reduction while maintaining full functionality.

  • Replaced RazorConsole.sln (119 lines) with RazorConsole.slnx (17 lines) containing the same 6 projects
  • Updated all .sln references to .slnx across CI/CD workflows and documentation
  • Maintains identical build, test, and format command compatibility

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
RazorConsole.slnx New XML-based solution file with all 6 projects organized in folders
RazorConsole.sln Legacy solution file removed
.github/workflows/ci.yml Updated all dotnet commands to reference .slnx in format validation, build-test, and nightly publish jobs
.github/workflows/release.yml Updated all dotnet commands to reference .slnx in release workflow
CONTRIBUTING.md Updated solution file references in setup instructions and development workflow guidelines
.github/copilot-instructions.md Updated solution file references in development workflow section
design-doc/project-overview.md Updated solution filename in project structure documentation

@LittleLittleCloud LittleLittleCloud merged commit a040cbe into main Nov 22, 2025
11 checks passed
@LittleLittleCloud LittleLittleCloud deleted the copilot/convert-sln-to-slnx branch November 22, 2025 22:11
@github-actions github-actions bot added this to the v0.2.0 milestone Nov 22, 2025
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.

[Feature]: Convert sln to slnx

4 participants