Skip to content

Commit e97e9ad

Browse files
authored
sln-add: Remove default values (#45940)
1 parent f79cb0b commit e97e9ad

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

src/Cli/dotnet/commands/dotnet-sln/add/Program.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ private async Task AddProjectsToSolutionAsync(string solutionFileFullPath, IEnum
8282
{
8383
Encoding = new UTF8Encoding(encoderShouldEmitUTF8Identifier: true)
8484
});
85-
}
86-
// Set default configurations and platforms for sln file
87-
foreach (var platform in _defaultPlatforms)
88-
{
89-
solution.AddPlatform(platform);
90-
}
91-
foreach (var buildType in _defaultBuildTypes)
92-
{
93-
solution.AddBuildType(buildType);
85+
// Set default configurations and platforms for sln file
86+
foreach (var platform in _defaultPlatforms)
87+
{
88+
solution.AddPlatform(platform);
89+
}
90+
foreach (var buildType in _defaultBuildTypes)
91+
{
92+
solution.AddBuildType(buildType);
93+
}
9494
}
9595

9696
SolutionFolderModel? solutionFolder = (!_inRoot && !string.IsNullOrEmpty(_solutionFolderPath))
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
<Solution>
2-
<Configurations>
3-
<Platform Name="Any CPU" />
4-
<Platform Name="x64" />
5-
<Platform Name="x86" />
6-
</Configurations>
72
<Project Path="Lib/Lib.csproj" />
83
</Solution>

0 commit comments

Comments
 (0)