dotnet/roslyn

How to handle warnings CS1701 and CS1702

Aperta

#23.488 aperta il 30 nov 2017

 (2 commenti) (1 reazione) (0 assegnatari)C# (4257 fork)batch import
Area-CompilersQuestionhelp wanted

Metriche repository

Star
 (20.414 stelle)
Metriche merge PR
 (Merge medio 6g 17h) (256 PR mergiate in 30 g)

Descrizione

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.

Guida contributor