Skip to content

Instantly share code, notes, and snippets.

View RossBencina's full-sized avatar
💭
I'm working on the thing that uses QueueWorld

Ross Bencina RossBencina

💭
I'm working on the thing that uses QueueWorld
View GitHub Profile
@DinisCruz
DinisCruz / gist:3185313
Created July 26, 2012 23:59
VisualStudio VSIX: Adding an item to the ErrorList
var vsixPackage = O2_FluentSharp_VSIXPackage.vsixPackage; // this is a reference to an Package object
var ivsSolution = (IVsSolution)Package.GetGlobalService(typeof(IVsSolution));
var dte = (EnvDTE80.DTE2)Package.GetGlobalService(typeof(EnvDTE.DTE));
var errorListProvider = new ErrorListProvider(vsixPackage);
var errorText = "this is a test item";
var errorCategory = TaskErrorCategory.Error;
//Get first project details
var proj = dte.Solution.Projects.Item(1);