Strong Name Dependent Assemblies

Latest post 09-22-2008 11:41 AM by Gary. 1 replies.
  • 09-22-2008 7:08 AM

    Strong Name Dependent Assemblies

    Hi, Thanks to your earlier suggestion I am able to Launch VSTA, open my solution, and load the Inprocess Host to create Toolbar items.

    Thsi InProcess Host assembly, ofcorse , is places in GAC.

     

    However My toobar item needs to launch a dialog which needs to load some types from my Assemblies which I would rather not place in the GAC.

     

    Any work arounds for this

     

    Thanks

  • 09-22-2008 11:41 AM In reply to

    • Gary
    • Top 10 Contributor
    • Joined on 07-13-2006
    • Posts 320

    Re: Strong Name Dependent Assemblies

    You may have to try a few approaches to see which one best fits your need.

    --Of course, you can load assemblies explicitly in your IPH program code and provide the path.

    -- Since the VSTA shell loads the IPH, I think that it can use the probe paths in its .config file.  

    ie: C:\Program Files\Microsoft Visual Studio 9\Common7\IDE\ vsta.exe.config file can contain dependent assembly paths

    --For VSTA 2.0, you could try adding assemblies into these paths 

     C:\Program Files\Microsoft Visual Studio 9\Common7\IDE\PublicAssemblies

    C:\Program Files\Microsoft Visual Studio 9\Common7\IDE\PrivateAssemblies

    let me know if these are useful.

    These may be helpful references to plan the best dicovery approach for your IPH's dependent assemblies:

     http://en.csharp-online.net/.NET_CLR_Components%E2%80%94Resolving_Names_to_Locations

    http://www.summsoft.com/blogs/garyvsta/archive/2007/02/08/dependent-assembly-binding-redirect-by-version.aspx

    hope this helps!

Page 1 of 1 (2 items) | RSS
Copyright Summit Software Company, 2008. All rights reserved.