What does the 'GenerateBindingRedirectsOutputType' option do when set to 'true' in a csproj file?
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.
It is not needed for projects that generate .exe executables but needed for unit test projects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With