Skip to content

ConfigurationBinder.Bind and ConfigurationBinder.Get trimming warning #59230

Answered by davidfowl
eduherminio asked this question in Q&A
Discussion options

You must be logged in to vote

These methods aren't trimming friendly. The linker can't tell what properties it should keep when you use these methods. Your options are:

  • Bind the value manually (don't use these methods)
  • The containing methods can declare what properties of GeneralSettings are used (using the dynamic dependency annotation)
  • You can use the xml file to customize the linking process to preserve GeneralSettings properties.

Replies: 1 comment 16 replies

Comment options

You must be logged in to vote
16 replies
@johnwc
Comment options

@colejohnson66
Comment options

@johnwc
Comment options

@ThaDaVos
Comment options

@jasper-d
Comment options

Answer selected by eduherminio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
9 participants