Add SolutionX item template for creating an empty slnx file - #55638
Open
ViktorHofer with Copilot wants to merge 1 commit into
Open
Add SolutionX item template for creating an empty slnx file#55638ViktorHofer with Copilot wants to merge 1 commit into
ViktorHofer with Copilot wants to merge 1 commit into
Conversation
Co-authored-by: ViktorHofer <7412651+ViktorHofer@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
ViktorHofer
August 6, 2026 16:08
View session
|
Azure Pipelines: Successfully started running 1 pipeline(s). 2 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Azure Pipelines: Successfully started running 1 pipeline(s). 2 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
baronfel
approved these changes
Aug 6, 2026
Evangelink
approved these changes
Aug 6, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new common item template that generates an empty .slnx (XML solution) file, providing a direct dotnet new slnx/dotnet new solutionx experience without exposing a --format option (unlike the existing sln template).
Changes:
- Added a new item template under
template_feed/.../SolutionX/that emits an emptySolution1.slnx. - Extended
dotnet newintegration coverage to create the template via both short names (slnx,solutionx) with an approval snapshot. - Updated tab-completion approval baselines to include
slnxacross Windows/Linux/macOS.
Show a summary per file
| File | Description |
|---|---|
| test/dotnet-new.IntegrationTests/CommonTemplatesTests.cs | Adds AllCommonItemsCreate coverage for the new XML Solution File template via slnx and solutionx. |
| test/dotnet-new.IntegrationTests/Approvals/DotnetNewCompleteTests.CanDoTabCompletion.Windows.verified.txt | Updates tab-completion baseline to include slnx. |
| test/dotnet-new.IntegrationTests/Approvals/DotnetNewCompleteTests.CanDoTabCompletion.OSX.verified.txt | Updates tab-completion baseline to include slnx. |
| test/dotnet-new.IntegrationTests/Approvals/DotnetNewCompleteTests.CanDoTabCompletion.Linux.verified.txt | Updates tab-completion baseline to include slnx. |
| test/dotnet-new.IntegrationTests/Approvals/AllCommonItemsCreate.-o#XML-Solution-File#-n#item.verified/XML-Solution-File/item.slnx | Adds approval snapshot for generated .slnx output. |
| test/dotnet-new.IntegrationTests/Approvals/AllCommonItemsCreate.-o#XML-Solution-File#-n#item.verified/std-streams/stdout.txt | Adds approval snapshot for command stdout for the new template scenario. |
| template_feed/Microsoft.DotNet.Common.ItemTemplates/content/SolutionX/Solution1.slnx | Adds the template content file for an empty .slnx. |
| template_feed/Microsoft.DotNet.Common.ItemTemplates/content/SolutionX/.template.config/template.json | Registers the new SolutionX item template (identity/group/short names/metadata). |
| template_feed/Microsoft.DotNet.Common.ItemTemplates/content/SolutionX/.template.config/localize/templatestrings.en.json | Adds English-localized strings for name/description/author. |
Copilot's findings
- Files reviewed: 9/9 changed files
- Comments generated: 0
This was referenced Aug 6, 2026
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.
Adds a dedicated item template that creates an empty
.slnxsolution file. Output matchesdotnet new sln(which already defaults to slnx), but this template intentionally exposes no--formatoption.Template
template_feed/Microsoft.DotNet.Common.ItemTemplates/content/SolutionX/modeled on the existingSolutiontemplate:Solution1.slnxcontent file only — no.slnvariant, noFormatsymbol, nodotnetcli.host.json.Microsoft.Standard.QuickStarts.SolutionX, groupItemSolutionX, short namesslnx/solutionx, name "XML Solution File".templatestrings.en.json; other locales flow through the loc pipeline.Tests
AllCommonItemsCreaterows for both short names, with a new approval snapshot.slnxadded to theCanDoTabCompletionapprovals (new template group contributes its primary short name).