Skip to content

Commit

Permalink
[REF] SolutionProjectModel Full Paths (#47422)
Browse files Browse the repository at this point in the history
  • Loading branch information
edvilme authored Mar 11, 2025
1 parent 99247e4 commit 5eb4440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cli/dotnet/ReleasePropertyProjectLocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public IEnumerable<string> 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;
Expand Down Expand Up @@ -220,7 +220,7 @@ public IEnumerable<string> 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;
Expand Down

0 comments on commit 5eb4440

Please sign in to comment.