Skip to content

Commit

Permalink
Fix paths on *nix
Browse files Browse the repository at this point in the history
  • Loading branch information
edvilme committed Jan 16, 2025
1 parent a747da2 commit 83c8898
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cli/dotnet/SlnFileFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ public static SolutionModel CreateFromFilteredSolutionFile(string filteredSoluti
foreach (string path in filteredSolutionProjectPaths)
{
// Normalize path to use correct directory separator
string normalizedPath = path.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
string normalizedPath = path.Replace('\\', Path.DirectorySeparatorChar);

SolutionProjectModel project = originalSolution.FindProject(normalizedPath) ?? throw new GracefulException(
CommonLocalizableStrings.ProjectNotFoundInTheSolution,
path,
normalizedPath,
originalSolutionPath);
filteredSolution.AddProject(project.FilePath, project.Type, project.Parent is null ? null : filteredSolution.AddFolder(project.Parent.Path));
}
Expand Down

0 comments on commit 83c8898

Please # to comment.