Click here to Skip to main content
15,891,708 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am quite new to .NET software development and I am currently having the following problem.
I have developed an application that uses a third party SDK. This SDK will only work if a number of binding redirects are specified. For the executables in my application this is not a problem, as these bindings are automatically added in the <app>.exe.config file. The real issues are the DLLs within my application, they also use this SDK and therefore need those binding redirects too. These DLLs are used by another third party executable and it seems to ignore the DLL's binding redirects completely.
According to this link: (https://docs.microsoft.com/en-us/archive/blogs/junfeng/rt_manifestimte-and-isolation_aware_enabled), it still seems possible to have these DLL binding redirects used by this executable.
I.e. the DLL must have a resource of type RT_MANIFEST, ID ISOLATIONAWARE_MANIFEST_RESOURCE_ID.
However, I have no idea how to add such a resource to my DLL now.

For a test, I manually added the binding redirect to the <app>.exe.config file of the external application, and then it looks like the DLL is working properly. But this is of course not the preferred way to solve this.

The application is fully developed with Visual Studio 2017 and written in VB.net.

So I hope there is someone who can confirm the above and if it is true how do I make this happen.

What I have tried:

I searched the internet on how to do this, but I couldn't find it.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900