“ GenerateBindingRedirectsOutputType”选项有什么作用?

时间:2019-09-18 04:35:06

标签: .net msbuild csproj

在csproj文件中将'GenerateBindingRedirectsOutputType'选项设置为'true'会做什么?

2 个答案:

答案 0 :(得分:2)

正如我们看到的here一样,我们需要AutoGenerateBindingRedirectsGenerateBindingRedirectsOutputType标志来使“自动生成绑定重定向”起作用。

GenerateBindingRedirectsOutputType将设置为true,以防您构建hereexewinexe

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

答案 1 :(得分:0)

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

相关问题