Log in

View Full Version : dll redirection using win7 config files


aqrit
October 30th, 2011, 12:43
I create a "target.exe.config" file and in "my_folder" I place "somedll.dll.2.manifest" and "somedll.dll" but I can't seem to get it to work

Code:

<configuration>
<windows>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="my_folder"/>
</assemblyBinding>
</windows>
<dependency>
<dependentassembly>
<assemblyidentity type="win32" name="somedll" version="5.3.1.904" processorArchitecture="x86" language="*"/>
</dependentassembly>
</dependency>
</configuration>

Code:

<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity name="somedll" version="5.3.1.904" processorArchitecture="x86" type="win32"/>
<file name="somedll.dll"/>
</assembly>