コード例 #1
0
 private void OutputTaskItem(string message, EnvDTE.vsTaskPriority priority, string subcategory,
                             string file, int line, string description)
 {
     ThreadHelper.JoinableTaskFactory.Run(async() =>
     {
         await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
         OutputPane.Activate();
         OutputPane.OutputTaskItemString(
             message,
             priority,
             EnvDTE.vsTaskCategories.vsTaskCategoryBuildCompile,
             EnvDTE.vsTaskIcon.vsTaskIconCompile,
             file,
             line,
             description,
             true);
     });
 }