Skip to content

Commit d75bb97

Browse files
authored
[release/10.0.1xx] Default dotnet new sln to slnx format for .NET 10 (#50373)
2 parents 2578461 + 0a875c7 commit d75bb97

File tree

14 files changed

+21
-12
lines changed

14 files changed

+21
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ cmake/
4646
# Test results
4747
**/*.trx
4848
/TestResults
49+
**/TestResults
4950
/test/dotnet.Tests/CompletionTests/snapshots/**/**.received.*
5051

5152
# Live Unit Testing

template_feed/Microsoft.DotNet.Common.ItemTemplates/content/Solution/.template.config/template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"type": "parameter",
2121
"displayName": "Solution file format",
2222
"description": "Choose the format for the solution file: sln or slnx.",
23-
"defaultValue": "sln",
23+
"defaultValue": "slnx",
2424
"datatype": "choice",
2525
"choices": [
2626
{

test/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibrary.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ private void TestInvalidTargetFramework(string testName, string targetFramework,
686686
new DotnetNewCommand(Log)
687687
.WithVirtualHive()
688688
.WithWorkingDirectory(testAsset.TestRoot)
689-
.Execute("sln")
689+
.Execute("sln", "--format", "sln")
690690
.Should()
691691
.Pass();
692692

test/Microsoft.NET.TestFramework/TestAssetsManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public TestAsset CreateTestProjects(
9595

9696
var testAsset = CreateTestProjectsInDirectory(testProjects, testDestinationDirectory);
9797

98-
var slnCreationResult = new DotnetNewCommand(Log, "sln")
98+
var slnCreationResult = new DotnetNewCommand(Log, "sln", "--format", "sln")
9999
.WithVirtualHive()
100100
.WithWorkingDirectory(testDestinationDirectory)
101101
.Execute();
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The template "%TEMPLATE_NAME%" was created successfully.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<Solution>
2+
</Solution>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The template "%TEMPLATE_NAME%" was created successfully.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<Solution>
2+
</Solution>

test/dotnet-new.IntegrationTests/Approvals/PostActionTests.AddProjectToSolution_Basic_Approval.Linux.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Processing post-creation actions...
44
Adding
55
project(s): %working directory%/MyProject.csproj
6-
to solution file: %working directory%/MySolution.sln
6+
to solution file: %working directory%/MySolution.slnx
77
solution folder: src
88
%CALLBACK OUTPUT%
99
Successfully added project(s) to a solution file.

0 commit comments

Comments
 (0)