I am trying to create some custom tool windows for my isolated shell (VS2010). Below is the code for toolwindow.
[Guid("xxxx")]
public class ToolWindow1: ToolWindowPane
{
public ToolWindow1()
: base(null)
{
this.Caption = "BAM0";
}
}
I am trying to open the tool window via
[ProvideToolWindow(typeof(ToolWindow1))]
...
ToolWindowPane window = this.FindToolWindow(typeof(ToolWindow1), 0, true);
However, I am getting a TargetInvocationException on FindToolWindow call, and I'm not sure why. Am I missing something in displaying a custom tool window?
Thanks!
Edit: my project references weren't set up properly. I ended up merging the two projects, and the tool window is now showing up properly.