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.

貢獻者指南