protected virtual IEnumerable <global::EnvDTE.ProjectItem> GetProjectItems()
        {
            var message = new ProjectItemInformationParams {
                ProjectFileName = Project.FileName
            };
            var list = JsonRpcProvider.Rpc.InvokeWithParameterObjectAsync <ProjectItemInformationList> (
                Methods.ProjectItemsName,
                message).WaitAndGetResult();

            foreach (ProjectItemInformation info in list.Items)
            {
                yield return(new ProjectItem(Project, info));
            }
        }
示例#2
0
        IEnumerable <string> GetAnalyzerItems()
        {
            var message = new ProjectItemInformationParams {
                ProjectFileName = project.FileName
            };
            var list = JsonRpcProvider.Rpc.InvokeWithParameterObjectAsync <AnalyzerInformationList> (
                Methods.ProjectAnalyzerItemsName,
                message).WaitAndGetResult();

            foreach (string fileName in list.FileNames)
            {
                yield return(fileName);
            }
        }