From 69c2c3644ec748bc82a88a3fb0eea2c68df44dff Mon Sep 17 00:00:00 2001 From: Eduardo Villalpando Mello Date: Mon, 10 Mar 2025 11:58:36 -0700 Subject: [PATCH] Refactored solution project full paths --- src/Cli/dotnet/ReleasePropertyProjectLocator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cli/dotnet/ReleasePropertyProjectLocator.cs b/src/Cli/dotnet/ReleasePropertyProjectLocator.cs index 2d52334b58f1..b09d0a345e6f 100644 --- a/src/Cli/dotnet/ReleasePropertyProjectLocator.cs +++ b/src/Cli/dotnet/ReleasePropertyProjectLocator.cs @@ -176,7 +176,7 @@ public IEnumerable GetCustomDefaultConfigurationValueIfSpecified() Parallel.ForEach(sln.SolutionProjects.AsEnumerable(), (project, state) => { #pragma warning disable CS8604 // Possible null reference argument. - string projectFullPath = Path.Combine(Path.GetDirectoryName(slnFullPath), project.FilePath); + string projectFullPath = Path.GetFullPath(project.FilePath, Path.GetDirectoryName(slnFullPath)); #pragma warning restore CS8604 // Possible null reference argument. if (IsUnanalyzableProjectInSolution(project, projectFullPath)) return; @@ -220,7 +220,7 @@ public IEnumerable GetCustomDefaultConfigurationValueIfSpecified() foreach (var project in sln.SolutionProjects.AsEnumerable()) { #pragma warning disable CS8604 // Possible null reference argument. - string projectFullPath = Path.Combine(Path.GetDirectoryName(slnPath), project.FilePath); + string projectFullPath = Path.GetFullPath(project.FilePath, Path.GetDirectoryName(slnPath)); #pragma warning restore CS8604 // Possible null reference argument. if (IsUnanalyzableProjectInSolution(project, projectFullPath)) continue;