Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>One solution (or workaround) would be to install both versions in the <strong>Global Assembly Cache</strong> (GAC) on the machine(s) on which your software needs to run, and reference the assemblies using their strong names. This assumes that the assemblies do indeed have strong names.</p> <p>Installing into the GAC will be a pain if you have more than a few developers or if you plan to deploy your solution to many computers (eg as an end-user application). In this case, I believe (but I might be wrong) that your only option is to <strong>merge one of the two versions</strong> into the assembly requiring that version. In your specific case, you need <code>Castle.DynamicProxy2.dll</code> v2.1 to be merged into <code>NHibernate.dll</code>.</p> <p>You can use a tool called <a href="http://research.microsoft.com/en-us/people/mbarnett/ilmerge.aspx" rel="noreferrer">ILMerge</a> to merge the assemblies. The command you will need to run looks something like this (untested):</p> <pre><code>ILMerge /t:library /internalize /out:Deploy/NHibernate.dll NHibernate.dll Castle.DynamicProxy2.dll </code></pre> <p>The <code>/internalize</code> switch tells ILMerge to mark all types from the second assembly (Castle in this case) <code>internal</code> in the output assembly. Without this, you might get compile errors when you try to compile a project referencing both your new <code>NHibernate.dll</code> and the shelf version of <code>Castle.DynamicProxy2.dll</code> v2.2, as they will contain classes with the exact same names.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload