Search code examples
.netmsbuildcsproj

What does the 'GenerateBindingRedirectsOutputType' option do?


What does the 'GenerateBindingRedirectsOutputType' option do when set to 'true' in a csproj file?


Solution

  • As we can see here we need both AutoGenerateBindingRedirects and GenerateBindingRedirectsOutputType flags to make some things for "autogenerating binding redirects" work.

    GenerateBindingRedirectsOutputType will be set to true in case you are building exe or winexe as written here.

    So if you need binding redirects to generate while building library dlls you need to specify the GenerateBindingRedirectsOutputType flag manually.