Skip to content

Commit 5eb4440

Browse files
authored
[REF] SolutionProjectModel Full Paths (#47422)
1 parent 99247e4 commit 5eb4440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Cli/dotnet/ReleasePropertyProjectLocator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public IEnumerable<string> GetCustomDefaultConfigurationValueIfSpecified()
176176
Parallel.ForEach(sln.SolutionProjects.AsEnumerable(), (project, state) =>
177177
{
178178
#pragma warning disable CS8604 // Possible null reference argument.
179-
string projectFullPath = Path.Combine(Path.GetDirectoryName(slnFullPath), project.FilePath);
179+
string projectFullPath = Path.GetFullPath(project.FilePath, Path.GetDirectoryName(slnFullPath));
180180
#pragma warning restore CS8604 // Possible null reference argument.
181181
if (IsUnanalyzableProjectInSolution(project, projectFullPath))
182182
return;
@@ -220,7 +220,7 @@ public IEnumerable<string> GetCustomDefaultConfigurationValueIfSpecified()
220220
foreach (var project in sln.SolutionProjects.AsEnumerable())
221221
{
222222
#pragma warning disable CS8604 // Possible null reference argument.
223-
string projectFullPath = Path.Combine(Path.GetDirectoryName(slnPath), project.FilePath);
223+
string projectFullPath = Path.GetFullPath(project.FilePath, Path.GetDirectoryName(slnPath));
224224
#pragma warning restore CS8604 // Possible null reference argument.
225225
if (IsUnanalyzableProjectInSolution(project, projectFullPath))
226226
continue;

0 commit comments

Comments
 (0)