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

Tip: Looking for answers? Try searching our database.

Project Subtype - extending IVsHierarchy items?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stuart Carnie - 20 Mar 2006 21:27 GMT
If I want to add properties of particular nodes in my project Subtype,
so they show up in the Properties tool window, do I use the
VSHPROPID_BrowseObject propid?

Also, how do I ensure these changes are persisted back to my project file?

e.g., I subtype a C# project, and want to persist some extra data for
some nodes (see below), is the VSHPROPID_BrowseObject the correct approach?

I may also want to completely override all the properties of a node, to
persist my own data...

Cheers,

my.csproj:
<Project ...>
...
<ItemGroup>
  <Compile Include="myfile.cs">
    <MyNewProperty>SomeValue</MyNewProperty>
  </Compile>
</ItemGroup>
...
</Project>
"Gary Chang[MSFT]" - 21 Mar 2006 09:21 GMT
Hi Stuart,

Currently, we are looking into this problem. We will update you as soon as
we get anything out.

Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
======================================================
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006.  Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
======================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================
Stuart Carnie - 21 Mar 2006 22:12 GMT
Gary Chang[MSFT] wrote:
> Hi Stuart,
>
[quoted text clipped - 19 lines]
> This posting is provided "AS IS" with no warranties, and confers no rights.
> ======================================================

Thank you sir.

Cheers,

Stuart
"Gary Chang[MSFT]" - 22 Mar 2006 09:21 GMT
Hi Stuart,

I have consulted this issue with our dev team--you are correct that
providing your own browse object would enable you to control what is shown
in the properties window, and as such, if you don't need those per file
properties to be part of the build, you can come up with way to store them
in the project file and retrieve them later, but may not be in the way you
show for the sample (which may be required if you need those as part of the
build).

For the issue about persisting some extra data for the customer project
node, you should be able to set metadata with
IVsBuildPropertyStorage::SetItemAttribute. You can also use a property
extender (rather than replacing the browse object entirely) in order to
display your additional property.

Wish it helps!

Best regards,

Gary Chang
Microsoft Community Support
======================================================
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006.  Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Stuart Carnie - 22 Mar 2006 16:24 GMT
Gary Chang[MSFT] wrote:
> Hi Stuart,
>
[quoted text clipped - 29 lines]
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.

Excellent and thank you Gary - I will try your suggestions.

Cheers,

Stuart
"Gary Chang[MSFT]" - 23 Mar 2006 04:15 GMT
You are welcome, Stuart. :)

Good Luck!

Best regards,

Gary Chang
Microsoft Community Support
======================================================
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006.  Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

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.