MSBuild task running in a separate application cannot load assemblies

I have an MSBuild task that has LoadInSeparateAppDomainAttributeand inherits from AppDomainIsolatedTask.

This task starts after a successful build. It downloads the recently assembled assembly and does some work with it. Therefore, a separate appdomain is required, because otherwise Visual Studio will load the assembly and block it.

However, the created appdomain does not know the Web.configapplication file . This config contains the required redirects necessary to successfully load the assembly-related DLLs.

Is there a way to add appdomain binding redirects programmatically?

+5
source share

All Articles