Skip to content
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

The Startup.cs snippet is missing the following code. The current version produces an error where 'Configuration' doesn't get resolved #16514

Closed
iocapps opened this issue Jan 12, 2020 — with docs.microsoft.com · 2 comments
Labels
doc-bug Source - Docs.ms Docs Customer feedback via GitHub Issue

Comments

Copy link

iocapps commented Jan 12, 2020

    public Startup(IConfiguration configuration) {
        Configuration = configuration;
    }

    public IConfiguration Configuration { get; }

Document Details

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

@Rick-Anderson
Copy link
Contributor

Moved to Master list: Create a web API and MongoDB #16196
@wadepickett hopefully you can address these this sprint.

@wadepickett wadepickett added this to the 2020 Q1 ends Mar 31 milestone Jan 13, 2020
@wadepickett wadepickett pinned this issue Jan 13, 2020
@iocapps iocapps changed the title The Startup.cs snipet is missing the following code. The current version produces an error where 'Configuration' doesn't get resolved The Startup.cs snippet is missing the following code. The current version produces an error where 'Configuration' doesn't get resolved Jan 13, 2020
@Rick-Anderson Rick-Anderson unpinned this issue Jan 17, 2020
@serpent5 serpent5 reopened this Nov 30, 2021
@serpent5
Copy link
Contributor

Fixed in #24126, which uses builder.Configuration in Program.cs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-bug Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
None yet
Development

No branches or pull requests

5 participants