Skip to content

Missing example for Net 6 Winforms applications #29679

@AndyWDev

Description

@AndyWDev

I'm working with a .Net 6 WinForms application which includes two class libraries. I'm using Microsoft.Extension.Configuration to reference IConfiguration.ConfigurationBuilder().AddXmlFile().Build(); followed by a call to GetRequredSection() to return a typed object.

In the WinForm app, the file App.Config gets renamed to .dll.config after the build process with the output being in the bin folder. Note: in .NET framework apps, the file used to be called .exe.config.

It would be great if there was an example showing how to access this file

Note: I do not have access to a host object as shown in the examples as this is a WinForms application.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

dotnet-fundamentals/svcneeds-more-infoNeeds more info from OP. Auto-closed after 2 weeks if no response. [org][resolution]

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions