Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / December 2005

Tip: Looking for answers? Try searching our database.

Add-in: Add Custom Build Properties to Project Item?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Greg - 01 Dec 2005 01:47 GMT
Is it possible to add a new build property to Project Item? For example,
could one add a new property called "Generate Comments" to a .cpp file that
could have a yes/no option that would show up under the C/C++ Configuration
Properties (perhaps under General similar to the "Treat Warnings as Errors
Property).

Thank You

Signature

Greg McPherran
www.McPherran.com

Carlos J. Quintero [VB MVP] - 01 Dec 2005 10:29 GMT
See:

Implementing and Using Automation Extenders
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/v
xconAutomationExtenders.asp


Signature

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

> Is it possible to add a new build property to Project Item? For example,
> could one add a new property called "Generate Comments" to a .cpp file
[quoted text clipped - 5 lines]
>
> Thank You
Greg - 02 Dec 2005 05:58 GMT
Thank You,

In the example code:

namespace SolutionExtender
{
    /// <summary>
    /// Extender Provider object. This is the "class factory" for the Extender
and is registered
    /// under the CATIDs of the solution objects (vsCATIDSolution and
vsCATIDSolutionBrowseObject)
    /// it is extending. See SolutionExtender.reg for the registration entries.
    /// </summary>
    [GuidAttribute("D629F716-77FE-49cd-8F9A-564111B80AFF"),
ProgId("SolutionExtender.CSharpSolnExtProvider")]   
    public class ExtenderProvider : Object, IExtenderProvider
    {

Where does the GUID come from? This extender seems to have been created in
VS 2002/2003. In VS2005 when a new Class Library project is created, there is
a GUID generated in the Assembly Info file. Would this be the start point for
an Extender Object project in VS2005? Would the Assembly Info GUID serve the
purpose that the GUID above does for the 2003 project? What about ProgID? Do
I need to provide that? Any other information related to these concepts would
be helpful.

Thank You!

Signature

Greg McPherran
www.McPherran.com

> See:
>
[quoted text clipped - 10 lines]
> >
> > Thank You
Carlos J. Quintero [VB MVP] - 02 Dec 2005 09:23 GMT
Hi Greg,

> Where does the GUID come from?

You must create one with the GuidGen tool.

> This extender seems to have been created in
> VS 2002/2003. In VS2005 when a new Class Library project is created, there
> is
> a GUID generated in the Assembly Info file. Would this be the start point
> for
> an Extender Object project in VS2005?

I think that the GUID attribute in the assembly file is for the assembly,
while the other one is for the class.

> What about ProgID? Do  I need to provide that?

I am not familiar with property extenders, but it seems that they are
COM-based, like add-ins in VS.NET 2002/2003, and to be COM based they
require a GUID and a ProgID. You can choose whatever unique ProgID

Signature

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.