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

Tip: Looking for answers? Try searching our database.

How to package a multi assembly VS 2005 add-in

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff MAURY - 02 Oct 2006 11:40 GMT
I have the following problem: I develop a VS 2005 add-in that is composed of
2 assembly: the one for my add-in and a general purpose assembly. Both are in
my add-in solution. When I debug my add-in, it works fine. But when I start
VS from scratch, I can see my command in the IDE but I can never execute them
because it seems VS cannot load the general purpose assembly. The directory
where my add-in assembly is located is never looked up.VS 2005 look for
standard directories instead (C:\Programs Files\Microsoft Visual Studio
8\Common7\IDE, C:\Programs Files\Microsoft Visual Studio
8\Common7\IDE\PublicAssemblies and C:\Programs Files\Microsoft Visual Studio
8\Common7\IDE\PrivateAssemblies).
So I am wondering how should I package my add-in for set up ?

Thanks
Jeff
Peter Macej - 02 Oct 2006 13:01 GMT
> VS from scratch, I can see my command in the IDE but I can never execute them
> because it seems VS cannot load the general purpose assembly. The directory

Are you sure this is the reason for commands not working? Our add-in
also uses multiple assemblies that are stored as DLLs in the same
directory as add-in's main DLL. There is no problem locating them. They
are all in one add-in solution and we didn't do anything special.

Signature

Peter Macej
Helixoft - http://www.helixoft.com
VSdocman - Commenter and generator of class documentation for C#, VB
.NET and ASP .NET code

Jeff MAURY - 02 Oct 2006 13:18 GMT
> > VS from scratch, I can see my command in the IDE but I can never execute them
> > because it seems VS cannot load the general purpose assembly. The directory
[quoted text clipped - 3 lines]
> directory as add-in's main DLL. There is no problem locating them. They
> are all in one add-in solution and we didn't do anything special.
Is is on VS 2005 ? I am pretty sure this is the problem because I used
filemon to track assmebly loading and I saw it tries to load it but can't do
it. How did you package your add-in ?
Jeff MAURY - 02 Oct 2006 14:17 GMT
Peter,

I found the solution: this was because the LoadBehavior flag in my test
.AddIn file was set to 0. Setting it to 1 make the addin to work correctly.

Thanks for the help
Jeff

> > > VS from scratch, I can see my command in the IDE but I can never execute them
> > > because it seems VS cannot load the general purpose assembly. The directory
[quoted text clipped - 6 lines]
> filemon to track assmebly loading and I saw it tries to load it but can't do
> it. How did you package your add-in ?

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.