Skip to content

Automatically UseDeveloperExceptionPage in WebApplication#34616

Merged
davidfowl merged 6 commits intomainfrom
halter73/34548
Jul 23, 2021
Merged

Automatically UseDeveloperExceptionPage in WebApplication#34616
davidfowl merged 6 commits intomainfrom
halter73/34548

Conversation

@halter73
Copy link
Copy Markdown
Member

Fixes #34548

The corresponding spa-templates changes are at dotnet/spa-templates#5

@halter73 halter73 requested review from a team, Pilchie and Tratcher as code owners July 22, 2021 08:28
Comment thread src/DefaultBuilder/src/WebApplicationBuilder.cs Outdated
Copy link
Copy Markdown
Contributor

@pranavkm pranavkm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look fine. Just making sure we sort out the moral conundrum.

Comment thread src/DefaultBuilder/src/WebApplicationBuilder.cs Outdated
#if (IndividualLocalAuth)
using Company.WebApplication1.Data;
#endif
#if (OrganizationalAuth || IndividualB2CAuth || IndividualLocalAuth || MultiOrgAuth || GenerateGraph)
Copy link
Copy Markdown
Member Author

@halter73 halter73 Jul 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This prevents the first line in Program.cs from being an empty newline:

image

I don't like how this needs to be kept in sync with the reset of the using #if's, but I don't see a better way.

Comment thread src/DefaultBuilder/src/WebApplicationBuilder.cs Outdated
@davidfowl davidfowl enabled auto-merge (squash) July 23, 2021 07:54
@davidfowl davidfowl merged commit d1c349f into main Jul 23, 2021
@davidfowl davidfowl deleted the halter73/34548 branch July 23, 2021 09:14
@ghost ghost added this to the 6.0-rc1 milestone Jul 23, 2021
@amcasey amcasey added area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc and removed area-runtime labels Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc feature-minimal-hosting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebApplicationBuilder should register the developer exception page in the pipeline by default for Development environment

6 participants