SLN SLNX
Конвертация файлов

Конвертировать SLN в SLNX

БЫСТРЫЙ ОТВЕТ
Возможно ли конвертировать SLN в SLNX?
Да - SLN конвертируется в SLNX.

The fastest path is the .NET CLI command dotnet sln migrate MySolution.sln, which writes a new .slnx file alongside the original without deleting it. Visual Studio 2022 (17.10+) can also save the solution as .slnx via File > Save As.

На этой странице

Протестировано на macOS, Windows и Linux
Последняя проверка: Oct 2026

Больше бесплатных конвертеров

HEIC, PNG, WEBP, MP3 и другие - все инструменты здесь бесплатны.

Открыть инструменты

Зачем конвертировать SLN в SLNX?

The .slnx format is Microsoft's XML-based replacement for the legacy .sln custom text format. It carries the same solution data - project references, build configurations, and solution folders - in a cleaner syntax that produces much more readable version-control diffs. Microsoft intends .slnx to be the long-term standard, so migrating earlier reduces future friction as tooling shifts toward it.

Способы конвертации SLN в SLNX

.NET CLI FREE

In a terminal, run dotnet sln migrate MySolution.sln from the folder containing the .sln; the CLI writes a new .slnx in the same directory and leaves the original .sln untouched.

Visual Studio 2022 FREE

Open the .sln in Visual Studio 2022 (17.10 or later), go to File > Save As, select 'Visual Studio Solution File (*.slnx)' as the type, and save alongside the original.

Об этих форматах

Качество и на что обратить внимание

  • The migration only rewrites the solution manifest; all .csproj, .vbproj, and source files are untouched, and the .slnx points to the same project files at the same relative paths.
  • Build configurations, platform mappings (Any CPU, x64), and solution folder groupings all transfer to .slnx - nothing is lost from the solution structure.
  • The .slnx format requires Visual Studio 2022 version 17.10 or later; earlier versions of Visual Studio cannot open .slnx files.

Часто задаваемые вопросы

Is the .sln deleted after migration?
No. Both the .NET CLI and Visual Studio create the .slnx alongside the original .sln; you can delete the old file once you have verified the new one loads correctly.
Do the .csproj files change during migration?
No. The migration only rewrites the solution manifest; all project files and source code are untouched.
Can older versions of Visual Studio open .slnx files?
No. .slnx support requires Visual Studio 2022 version 17.10 or later.