dotnet / docs

This repository contains .NET Documentation.
https://learn.microsoft.com/dotnet
Creative Commons Attribution 4.0 International
4.23k stars 5.88k forks source link

need 2nd conditional and in standard templates #23037

Open DickBaker opened 3 years ago

DickBaker commented 3 years ago
  1. surely the ConfigureServices code should equally be subject to "if (env.IsDevelopment())", i.e.

    public void ConfigureServices(IServiceCollection services)
    {
        if (env.IsDevelopment())
        {
            services.AddDatabaseDeveloperPageExceptionFilter();
        }
    }
  2. surely both these "Recommended actions" should be incorporated into all the standard project templates anyway ? [if not why not?]

    Document Details

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

adegeo commented 3 years ago

Thank you for opening this issue. I'll add it to the backlog. If you would like to contribute, you can submit a fix by editing the original article. Click on the Content Source link at the bottom of your original comment. To learn how to edit, see the Editing files in a repository article from GitHub.

For your 2nd item, you'll have to file template requests with the product team on github, not the documentation here.

Ping @scottaddie I've triaged this. Let me know if this requested change makes sense.

Thanks again!