Re: Best practices on assembly references?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Put the DLL into the bin folder?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A watched clock never boils.

"Notre Poubelle" <notre_poubelle@xxxxxxxxxxxxx> wrote in message
news:16C6D798-3914-4276-8CF8-D02C19308EE4@xxxxxxxxxxxxxxxx
> Hello,
>
> I'm integrating some code with Visual Studio. All my code is managed, and
> I
> make use of registration attributes and regpkg.exe to reflect over the
> assembly to generate registration information. This registration
> information
> gets places into the registry and VS goes through well known registry keys
> and uses COM interop to load our packages as appropriate.
>
> I would like some of these managed packages to make use of services from
> other custom assemblies. I could place these other assemblies in the GAC,
> but I'd like to avoid that. Modifying the machine configuration file
> similarly seems like a bad idea. As I don't own the executable
> (devenv.exe)
> I cannot use an application configuration file. The only option then
> seems
> to be to use System.Reflection.Assembly.LoadFrom and specify a path, such
> as
> a path relative to the executing assembly (e.g. the one that got loaded by
> VS
> using COM interop).
>
> Are there other options or best practices to follow? Is there a way to
> provide hint paths or otherwise participate in assembly probing in such a
> scenario, without providing a fully qualified path?
>
> Although this question is specific to VS, the same question applies to
> other
> products where an assembly writer does not own the executable (such as an
> MS
> office addin scenario); if there is a means of loading a managed assembly
> into the process of another executable then how can this managed assembly
> make use of other assemblies as described above?
>
> Thank you,
>
> Notre


.



Relevant Pages

  • Re: Is it possible to have multiple assemblies in a Application Domain
    ... can have multiple assemblies in an Application Domain. ... read is two things that talk in favour that you can have multiple assemblies ... start executing until AssembyA has finished executing. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Complex Problem with AppDomains, Assembly Loading Contexts and COM Interop
    ... ..Net assemblies get loaded by the CLR as the result of interop, ... and this allows us to load the assemblies into the Load context. ... default load context and in another is reachable only via the LoadFrom ... effectively executing LoadFrom? ...
    (microsoft.public.dotnet.framework.clr)
  • Re: dynamic reflection from xml file security
    ... > the assembly full permission for executing. ... The only assemblies would be framework assemblies ... page as well as setting properties of that control thru the xml. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Is it possible to have multiple assemblies in a Application Domain
    ... can have multiple assemblies in an Application Domain. ... read is two things that talk in favour that you can have multiple assemblies ... start executing until AssembyA has finished executing. ... several dlls can be in a single app domain. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: word interop assembly not loading
    ... An error occurred during the processing of a configuration file ... Assembly Load Trace: The following information can be helpful to determine ... To enable assembly bind failure logging, ...
    (microsoft.public.dotnet.languages.csharp)