public static async Task<IReadOnlyCollection<IApiNode>> ReadApiFromProjects(string solutionFilePath, CancellationToken cancellationToken)
 {
     using (var msWorkspace = MSBuildWorkspace.Create(s_DefaultProperties))
     {
         var projects = await GetProjects(solutionFilePath, cancellationToken, msWorkspace);
         var solution = new ApiReader(projects);
         return await solution.ReadProjects(cancellationToken);
     }
 }
Exemple #2
0
        public static async Task <IReadOnlyCollection <IApiNode> > ReadApiFromProjects(string solutionFilePath, CancellationToken cancellationToken)
        {
            using (var msWorkspace = MSBuildWorkspace.Create(s_DefaultProperties))
            {
                var projects = await GetProjects(solutionFilePath, cancellationToken, msWorkspace);

                var solution = new ApiReader(projects);
                return(await solution.ReadProjects(cancellationToken));
            }
        }