Skip to content

Commit

Permalink
sln-add: Default values only for sln
Browse files Browse the repository at this point in the history
  • Loading branch information
edvilme committed Jan 13, 2025
1 parent 029b4b8 commit 63a5e05
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Cli/dotnet/commands/dotnet-sln/add/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ private async Task AddProjectsToSolutionAsync(string solutionFileFullPath, IEnum
{
Encoding = new UTF8Encoding(encoderShouldEmitUTF8Identifier: true)
});
}
// Set default configurations and platforms for sln file
foreach (var platform in _defaultPlatforms)
{
solution.AddPlatform(platform);
}
foreach (var buildType in _defaultBuildTypes)
{
solution.AddBuildType(buildType);
// Set default configurations and platforms for sln file
foreach (var platform in _defaultPlatforms)
{
solution.AddPlatform(platform);
}
foreach (var buildType in _defaultBuildTypes)
{
solution.AddBuildType(buildType);
}
}

SolutionFolderModel? solutionFolder = (!_inRoot && !string.IsNullOrEmpty(_solutionFolderPath))
Expand Down

0 comments on commit 63a5e05

Please sign in to comment.