Skip to content

Commit

Permalink
Merge pull request #467 from tonyhallett/fix-null-project-reference-p…
Browse files Browse the repository at this point in the history
…ath-on-subs-run

fix by using the Name instead of the Path
  • Loading branch information
tonyhallett authored Nov 14, 2024
2 parents 6fb335e + 9ab9694 commit b29e66e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SharedProject/Core/Model/CoverageProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,7 @@ private async Task<List<ReferencedProject>> GetReferencedProjectsFromDteAsync()
return vsproject.References.Cast<VSLangProj.Reference>().Where(r => r.SourceProject != null).Select(r =>
{
ThreadHelper.ThrowIfNotOnUIThread();
var assemblyName = Path.GetFileNameWithoutExtension(r.Path);
return new ReferencedProject(r.SourceProject.FullName, assemblyName);
return new ReferencedProject(r.SourceProject.FullName, r.Name);
}).ToList();

}
Expand Down

0 comments on commit b29e66e

Please sign in to comment.