Skip to content

Use System.Configuration.ConfigurationManager NuGet package #4363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ Putting user logon credentials inside your code is not a good practice. How you

Enabling this requires three steps:

1. [Add a System.Configuration reference to the Visual Studio project](#add-a-systemconfiguration-reference-to-the-visual-studio-project)
1. [Add the System.Configuration.ConfigurationManager NuGet package to the Visual Studio project](#add-the-systemconfigurationconfigurationmanager-nuget-package-to-the-visual-studio-project)
1. [Edit the application configuration file](#edit-the-application-configuration-file)
1. [Add a `using` directive in Program.cs](#add-using-directive-to-programcs)

### Add a System.Configuration reference to the Visual Studio project
### Add the System.Configuration.ConfigurationManager NuGet package to the Visual Studio project

1. In **Solution Explorer**, right click **References** and select **Add Reference...** .
1. In the **Reference Manager** dialog search for `System.Configuration` and select the checkbox to add this reference to your project.
1. Click **OK** to close the **Reference Manager** dialog.
1. In **Solution Explorer**, right-click **Dependencies** and select **Manage NuGet Packages...** in the context menu.
1. Browse for the NuGet package named `System.Configuration.ConfigurationManager`, select it, and then choose **Install**.

:::image type="content" source="media/enhanced-quick-start-nuget-package-install-light-theme.png" alt-text="Install the System.Configuration.ConfigurationManager package" lightbox="media/enhanced-quick-start-nuget-package-install-light-theme.png":::

### Edit the application configuration file

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.