-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
dotnet-fundamentals/svcneeds-more-infoNeeds more info from OP. Auto-closed after 2 weeks if no response. [org][resolution]Needs more info from OP. Auto-closed after 2 weeks if no response. [org][resolution]
Description
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.
- ID: d4c11507-cd06-292f-53bc-3a7f14affd86
- Version Independent ID: 33eb4890-44e0-522b-b1c1-964fec385b6a
- Content: Configuration providers in .NET
- Content Source: docs/core/extensions/configuration-providers.md
- Product: dotnet-fundamentals
- GitHub Login: @IEvangelist
- Microsoft Alias: dapine
IEvangelist
Metadata
Metadata
Assignees
Labels
dotnet-fundamentals/svcneeds-more-infoNeeds more info from OP. Auto-closed after 2 weeks if no response. [org][resolution]Needs more info from OP. Auto-closed after 2 weeks if no response. [org][resolution]