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 / May 2006

Tip: Looking for answers? Try searching our database.

Missing Context Menu Items

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
snae - 28 Apr 2006 17:47 GMT
I am currently porting a VSIP project that was originally written for
VS 2003 (and 2002 before that) and after migration (which has been
successful on the whole) I am missing context menu items for Solution
Build/Rebuild when a solution consists of projects of only my type.
There has been a post about this some time ago (October last year) but
with no replies.  Interestingly the Clean Solution menu item is still
present, just Build and Rebuild are missing.  Could anyone help?

Many Thanks
"Ed Dore [MSFT]" - 28 Apr 2006 21:33 GMT
Hi Andy,

This is just a ballpark guess, but did you include the missing commands in
the CMDUSED_SECTION section of your .CTC file? You might need to do this,
and then run devenv /rootsuffix Exp /setup to get them to show.

Sincerely,
Ed Dore [MSFT]

This post is 'AS IS' with no warranties, and confers no rights.
snae - 30 Apr 2006 18:04 GMT
I have tried this, with no success.  Looking at the example projects,
they include very little in the .ctc files by default.  Mu .ctc file
does contain a few things which appear just as they should.  One thing
that may help to solve this is that in the MyCPkgs example there is no
'Clean Solution' in the context menu at solution level, but there are
Build and Rebuild.  The FigPkg example however does contain all three
entries.  I cannot find where the differences are which make this the
case.  Does this provide any more clues as to where the problem may
lie?

Thanks again
snae - 09 May 2006 13:00 GMT
I found the solution to this.  It appears that something has changed
between 2002/2003 and 2005 with respect to
IVsBuildableProjectCfg::QueryStartBuild and
IVsBuildableProjectCfg::QueryStartClean.  In my previous
implementations I was returning FALSE for pfSupported and pfEnabled
(can't remember why now...) and 2002/2003 work with these values.  2005
requires (correctly I would assume) that these two out parameters are
set to TRUE to allow the context menu at Solution level to display
Build/Rebuild and Clean.

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.