Skip to content

Correct Trimming RootMode for ConfigurationManager #109777

@Trimatix

Description

@Trimatix

Hi there, this is a followup after #101423.

I've rooted ConfigurationManager as described using TrimmerRootAssembly, but dotnet publish says that ConfigurationManager does not specify a RootMode, so I've given <TrimmerRootAssembly Include="System.Configuration.ConfigurationManager" RootMode="Library" />.

In this mode, I still get the Unhandled exception. System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize error from #101423.

Please could you advise the correct rootmode to use for this package? I haven't been able to find the documentation for RootMode online as of yet.

Many thanks in advance

(dotnet 8, linux-x64)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions