Hello Ed Dore,
Thank you for your input. Yes, as you pointed out, VS SDK does provide
useful doc for creating custom tools options pages. What I am concerned here
is the steps to do that with automation model (ENVDTE/ENVDTE80).
It seems that there is only one page talking about this topic as the
following link shown:
http://msdn2.microsoft.com/en-us/library/b389wd38.aspx
The procedures provided is incomplete. It does not point out how to register
the custom tools options pages. It even does not provide any information
about the format of the xml file used to define the pages.
shawn
> Feel free to post back with some additional details on where you feel the
> documentation is wrong or incomplete, and I'll make sure we get that info
[quoted text clipped - 15 lines]
>
> This post is "AS IS" with no warranties, and confers no rights.
"Ed Dore [MSFT]" - 04 Jan 2006 01:45 GMT
Thanks Shawn,
I can't make heads or tails out of that help topic myself. Thanks for the
pointer. I'll get a bug report into the documentation team, and post back
here with some additional details on how to do this shortly.
Sincerely,
Ed Dore [MSFT]
This post is "AS IS" with no warranties, and confers no rights.
man-in-nature - 04 Jan 2006 03:48 GMT
Appreciate your time and help. I'm looking forward for your next post.
Shawn
> Thanks Shawn,
>
[quoted text clipped - 6 lines]
>
> This post is "AS IS" with no warranties, and confers no rights.
"Ed Dore [MSFT]" - 04 Jan 2006 23:07 GMT
Hi Shawn,
We should have a new set of VS 2005 automation samples posted shortly, one
of which actually contains an addin sample that does this. Keep an eye on
http://www.msdn.microsoft.com/vstudio/extend, as we'll post a link to the
new samples as soon as they go live.
To create a Tools Options page, you need to create a VS .Net Addin. Once
you have the addin created, you'll need to add a new UserControl to the
addin project, and additionally derive from and implement
EnvDTE.IDTToolsOptionsPage interface on this control.
To register the addin, you need to modify the addin's .addin file similar
to the following:
<?xml version="1.0" encoding="UTF-16" standalone="no"?>
<!--Copyright (c) Microsoft Corporation. All rights reserved.-->
<Extensibility xmlns="http://schemas.microsoft.com/AutomationExtensibility">
<HostApplication>
<Name>Microsoft Visual Studio</Name>
<Version>8.0</Version>
</HostApplication>
<Addin>
<FriendlyName>MyToolsOptionsPage</FriendlyName>
<Description>My First Tools Options Page</Description>
<Assembly>MyToolsOptionsPage.dll</Assembly>
<FullClassName>MyToolsOptionsPage.Connect</FullClassName>
<LoadBehavior>0</LoadBehavior>
<CommandPreload>0</CommandPreload>
<CommandLineSafe>0</CommandLineSafe>
</Addin>
<ToolsOptionsPage>
<Category Name="My Tools">
<SubCategory Name="My Options">
<Assembly>MyToolsOptionsPage.dll</Assembly>
<FullClassName>ToolsOptionsPage.MyOptionsPage</FullClassName>
</SubCategory>
</Category>
</ToolsOptionsPage>
</Extensibility>
Hopefully, that'll get you pointed in the right direction. Shawn, if you
get stuck, send me an email (minus the ".online") and I'll send you a copy
of a sample addin I've got that does this.
Sincerely,
Ed Dore [MSFT]
This post is 'AS IS' with no warranties, and confers no rights.