Skip to content

Commit

Permalink
Fixed a bug in the Solution Generation wherein it tried to resolve fo…
Browse files Browse the repository at this point in the history
…r a Solution Folder
  • Loading branch information
aolszowka committed Dec 14, 2018
1 parent b14194a commit e81ea24
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion MsBuildProjectReferenceDependencyGraph/MSBuildUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,15 @@ public class MSBuildUtilities
/// <returns>The fully qualified paths to all of the projects in the solution.</returns>
public static IEnumerable<string> GetProjectsFromSolution(string targetSolutionFile)
{
string solutionFolder = Path.GetDirectoryName(targetSolutionFile);
SolutionFile solution = SolutionFile.Parse(targetSolutionFile);

return solution.ProjectsInOrder.Select(project => project.AbsolutePath);
return
solution
.ProjectsInOrder
.Where(project => project.ProjectType == SolutionProjectType.KnownToBeMSBuildFormat)
.Select(project => project.RelativePath)
.Select(projectRelativePath => PathUtilities.ResolveRelativePath(solutionFolder, projectRelativePath));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.4")]
[assembly: AssemblyFileVersion("1.0.0.4")]
[assembly: AssemblyVersion("1.0.0.5")]
[assembly: AssemblyFileVersion("1.0.0.5")]

0 comments on commit e81ea24

Please sign in to comment.