dotnet/roslyn

How to handle warnings CS1701 and CS1702

开放

#23,488 创建于 2017年11月30日

 (2 条评论) (1 个反应) (0 位负责人)C# (4,257 个派生)batch import
Area-CompilersQuestionhelp wanted

仓库指标

星标
 (20,414 个星标)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

Is there built in support in the .Net compiler platform to generate binding redirects similar to setting the AutoGenerateBindingRedirects to true in a visual studio project?

Alternativly, are there any guidelines on how one should go about to generate binding redirects when the compilation result contains warnings CS1701 and CS1702? Or maybe there is a way to tell the compiler that some redirect exists in order to supress the warning?

What I would like to achieve is:

  • If a binding redirect exists in the projects app.config --> no warning.
  • If there is a need for a binding redirect, it should be added to the app.config --> no warning.

贡献者指南