Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the 'GenerateBindingRedirectsOutputType' option do?

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

like image 643
Denis Gladkiy Avatar asked Sep 18 '19 04:09

Denis Gladkiy


2 Answers

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.

like image 195
saltukkos Avatar answered Nov 26 '22 13:11

saltukkos


It is not needed for projects that generate .exe executables but needed for unit test projects.

like image 29
Mahesh Waghmare Avatar answered Nov 26 '22 15:11

Mahesh Waghmare