Last active
February 1, 2016 23:06
-
-
Save JoshVarty/99b012f0304c0a557f47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string solutionPath = @"C:\Users\...\PathToSolution\MySolution.sln"; | |
var msWorkspace = MSBuildWorkspace.Create(); | |
var solution = msWorkspace.OpenSolutionAsync(solutionPath).Result; | |
foreach (var project in solution.Projects) | |
{ | |
foreach (var document in project.Documents) | |
{ | |
Console.WriteLine(project.Name + "\t\t\t" + document.Name); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment