Ejemplo n.º 1
0
 public Solution CreateSolutionsFromFilePath(string path)
 {
     Solution solution = null;
     ConsolePrinter.PrintStatus(Operation.BuildingSolution, path);
     try
     {
         var msWorkspace = MSBuildWorkspace.Create();
         solution = msWorkspace.OpenSolutionAsync(path).Result.GetIsolatedSolution();
     }
     catch (Exception e)
     {
         ConsolePrinter.PrintException(e, $"Cannot create solution for {path}");
     }
     return solution;
 }