Skip to content

Commit

Permalink
Remove SlnFile references
Browse files Browse the repository at this point in the history
  • Loading branch information
edvilme committed Jan 6, 2025
1 parent 224b9da commit e1d98ce
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 606 deletions.
4 changes: 2 additions & 2 deletions src/Cli/dotnet/ProjectInstanceExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.

using Microsoft.Build.Execution;
using Microsoft.DotNet.Cli.Sln.Internal;

namespace Microsoft.DotNet.Tools.Common
{
Expand All @@ -22,7 +21,8 @@ public static string GetDefaultProjectTypeGuid(this ProjectInstance projectInsta
string projectTypeGuid = projectInstance.GetPropertyValue("DefaultProjectTypeGuid");
if (string.IsNullOrEmpty(projectTypeGuid) && projectInstance.FullPath.EndsWith(".shproj", StringComparison.OrdinalIgnoreCase))
{
projectTypeGuid = ProjectTypeGuids.SharedProjectGuid;
// TODO: Centralize project type guids
projectTypeGuid = "{D954291E-2A0B-460D-934E-DC6B0785DB48}";
}
return projectTypeGuid;
}
Expand Down
541 changes: 0 additions & 541 deletions src/Cli/dotnet/SlnFileExtensions.cs

This file was deleted.

24 changes: 0 additions & 24 deletions src/Cli/dotnet/SlnProjectCollectionExtensions.cs

This file was deleted.

36 changes: 0 additions & 36 deletions src/Cli/dotnet/SlnProjectExtensions.cs

This file was deleted.

1 change: 0 additions & 1 deletion src/Cli/dotnet/commands/dotnet-sln/list/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

using System.CommandLine;
using Microsoft.DotNet.Cli;
using Microsoft.DotNet.Cli.Sln.Internal;
using Microsoft.DotNet.Cli.Utils;
using Microsoft.VisualStudio.SolutionPersistence;
using Microsoft.VisualStudio.SolutionPersistence.Model;
Expand Down
1 change: 0 additions & 1 deletion test/dotnet-sln.Tests/GivenDotnetSlnList.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using Microsoft.DotNet.Cli.Sln.Internal;
using Microsoft.DotNet.Tools;
using Microsoft.DotNet.Tools.Common;
using CommandLocalizableStrings = Microsoft.DotNet.Tools.Sln.LocalizableStrings;
Expand Down
1 change: 0 additions & 1 deletion test/dotnet-sln.Tests/GivenDotnetSlnMigrate.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using Microsoft.DotNet.Cli.Sln.Internal;
using Microsoft.DotNet.Tools;
using Microsoft.DotNet.Tools.Common;
using CommandLocalizableStrings = Microsoft.DotNet.Tools.Sln.LocalizableStrings;
Expand Down

0 comments on commit e1d98ce

Please # to comment.