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

Tip: Looking for answers? Try searching our database.

Adding properties to a custom solution

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
becca - 03 Jan 2006 22:11 GMT
Hi,
I'm using a VS 2005 and 10/2005 VSIP C++ sample called SlnExt as a demo for
the ability to create new properties for a solution. From that point, I'm
trying to create a VSPackage that can read/write those custom properties. I'm
having problems actually getting access to those properties though.

I've tried using DLLImport to obtain access to the C++ sample from my own C#
VSPackage (in the same solution) but had memory errors.
I then tried somehow gaining access through an _AtlModule but failed
miserably with that as well.

I'm not sure what the right approach is. However, even better yet would be a
sample of how to add solution properties in C#!

I'm a fairly new VSIP user so be gentle please.
Thanks
Becca
"Ed Dore [MSFT]" - 04 Jan 2006 01:40 GMT
Hi Becca,

The Solution Extender addin sample out on
http://www.microsoft.com/downloads/details.aspx?familyid=3ff9c915-30e5-430e-
95b3-621dccd25150&displaylang=en might be of interest.

From a VSIP package, you could use the EnvDTE automation model and simply
use the DTE.Solution.Globals object to persist custom properties to the
SLN.

Allen Denver has some info on his blog on how to retrieve the EnvDTE.DTE
object from your package on
http://blogs.msdn.com/allend/archive/2004/03.aspx.

Sincerely,
Ed Dore [MSFT]

This post is 'AS IS' with no warranties, and confers no rights.
becca - 04 Jan 2006 16:36 GMT

> The Solution Extender addin sample out on
> http://www.microsoft.com/downloads/details.aspx?familyid=3ff9c915-30e5-430e-
> 95b3-621dccd25150&displaylang=en might be of interest.

I can't get this add-in to work. I added the .reg file to the registry
through regedit, and it said it worked, but nothing shows in the add-in
manager and I can't see the solution props.

> From a VSIP package, you could use the EnvDTE automation model and simply
> use the DTE.Solution.Globals object to persist custom properties to the
[quoted text clipped - 3 lines]
> object from your package on
> http://blogs.msdn.com/allend/archive/2004/03.aspx.

I'm attempting to do this, but my project has an error when its trying to
register the dll (in a post-build custom event). I don't think the two are
related, as this happened sometimes before, but any ideas as to common
reasons why it won't register? The path names of the dll and tool look ok.
Thanks.
becca - 04 Jan 2006 20:52 GMT
I still haven't gotten the addin to work, but I did get the other option
(with DTE.Solution.Globals) to work.
I'm still having problems getting the debugger to work though, there is some
problem where it can't load symbols so it won't actually help me debug,
although the whole thing runs. Any suggestions?

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.