Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8950573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:28:53+00:00 2026-06-15T13:28:53+00:00

My question is very similar to this one , only that the answer and

  • 0

My question is very similar to this one, only that the answer and work-around are not working for me. Also I am in Visual Studio 2012.

I have a VSPackage which is referencing another project, which is dependent on other dlls. Everytime time I run my package in debug I get an exception that the other dlls cannot be found. They are in the output directory, and they are signed.

I tried referencing them directly by the VSPackage project to no avail.

Thoughts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T13:28:54+00:00Added an answer on June 15, 2026 at 1:28 pm

    This problem exists because Visual Studio is not looking for assemblies in a folder of your extension if your extension has no explicit dependence on these assemblies. For example, dependences set in a configuration file (IoC config) or in xaml code. I know three solutions to this problem:

    1. You can deploy these assemblies in the GAC and Visual Studio will load them. This method is good if you use a third-party library that built for use in the GAC (for example, MS Enterprise Library). But VSIX Deployment Package does not allow installing assemblies in the GAC, you can use the MSI installer.

    2. For VSPackages for Visual Studio 2010/2012 you can use ProvideBindingPath attribute. The path where your extension located will be added to the paths that Visual Studio uses to find dependent assemblies. If your extension doesn’t include a VSPackage, you can add this attribute to any public class (see here).

      [ProvideBindingPath] 
      public class MyVsPackage : Package 
      { /* ... */ }
      
    3. You can manually resolve assembly names. To do this, you need to subscribe to the AssemblyResolve event and you need to return required assemblies from a handler. This is the most flexible way, if you cannot use the previous methods, this is especially for you.

      In my IntelliDebugger project, I wrote a class ManualAssemblyResolver for it:

    using System;
    using System.Reflection;
        
    namespace IntelliEgg.Debugger.Utility
    {
        public class ManualAssemblyResolver : IDisposable
        {
            public ManualAssemblyResolver(Assembly assembly)
            {
                if (assembly == null)
                    throw new ArgumentNullException("assembly");
    
                _assemblies = new[] {assembly};
                AppDomain.CurrentDomain.AssemblyResolve += OnAssemblyResolve;
            }
    
            public ManualAssemblyResolver(params Assembly[] assemblies)
            {
                if (assemblies == null)
                    throw new ArgumentNullException("assemblies");
    
                if (assemblies.Length == 0)
                    throw new ArgumentException("Assemblies should be not empty.", "assemblies");
    
                _assemblies = assemblies;
                AppDomain.CurrentDomain.AssemblyResolve += OnAssemblyResolve;
            }
    
            public void Dispose()
            {
                AppDomain.CurrentDomain.AssemblyResolve -= OnAssemblyResolve;
            }
    
            private Assembly OnAssemblyResolve(object sender, ResolveEventArgs args)
            {
                foreach (Assembly assembly in _assemblies)
                {
                    if (args.Name == assembly.FullName)
                    {
                        return assembly;
                    }
                }
    
                return null;
            }
    
            private readonly Assembly[] _assemblies;
        }
    }
    

    This class must be created before the first call to the problem assembly (e.g., in Package::Initialize() method)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is very similar to this one . However, the accepted answer (and
Firstly, I realise that this is a very similar question to this one: Which
My question is very similar to this one on SO, only it doesn't exactly
My question popped up a very similar question, this one . But the accepted
I know that this question is very similar to the question posted here .
I know that this is a repeated question. I have found very similar questions
My question is similar to this one , but is different enough that I
My question is very similar to the one described in this post: Javascript progress
Preamble: My core question is very similar to this one: How can I write
My question is pretty similar to this one . I am working in company

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.