“GenerateBindingRedirectsOutputType”选项有什么作用?

Den*_*kiy 9 .net msbuild csproj

在 csproj 文件中设置为“true”时,“GenerateBindingRedirectsOutputType”选项有什么作用?

sal*_*kos 11

正如我们在这里看到的,我们需要AutoGenerateBindingRedirects和GenerateBindingRedirectsOutputType标志来为“自动生成绑定重定向”工作做一些事情。

GenerateBindingRedirectsOutputType将被设置为true,如果你正在建设exe或winexe书面这里。

因此,如果您需要在构建库 dll 时生成绑定重定向,则需要GenerateBindingRedirectsOutputType手动指定标志。


Mah*_*are 7

生成 .exe 可执行文件的项目不需要它,但单元测试项目需要它。