Redirecting SideBySide Assemblies

47 views Asked by At

I'm trying to use SideBySide assemblies in my .Net application. The application structure is set up in a way that all assemblies/dependencies are placed in a linked subdirectory. The configuration file references this directory using "probing privatePath=...". Is it possible to move the manifest file or the specified SideBySide assemblies to the folder as well?

1

There are 1 answers

1
Microsoft DN On

You can try below solution

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="LinkedSubdirectory"/>
    </assemblyBinding>
</runtime>

Here, the element specifies that the application should look for assemblies in the LinkedSubdirectory relative to the application's base directory. Remember to adjust the configuration values based on your actual subdirectory structure.

Make sure your application is aware of the new assembly location and the updated private path configuration. This involves updating the application configuration file (e.g., app.config or web.config) with the appropriate probing element and privatePath attribute values.