Skip to content

Conversation

@SteveSandersonMS
Copy link
Member

@SteveSandersonMS SteveSandersonMS commented Aug 12, 2021

Fixes https://github.com/aspnet/AspNetCore-ManualTests/issues/814

A recent change resulted in the UseWebAssemblyDebugging call only being included for projects with individual auth. This is incorrect, since it should in included regardless of auth settings.

Additionally, the way the #if/#else/#endif pragmas were used was very hard to read, probably leading to the above mistake - they were trying to minimize the number of such pragmas at the cost of deliberately mismatching C# scope boundaries. To make these files readable, we should ensure that #if blocks are correctly nested inside C# scopes (and vice-versa) as if they were regular if statements.

@SteveSandersonMS SteveSandersonMS added the area-blazor Includes: Blazor, Razor Components label Aug 12, 2021
@SteveSandersonMS SteveSandersonMS added this to the 6.0-rc1 milestone Aug 12, 2021
@SteveSandersonMS SteveSandersonMS requested a review from a team August 12, 2021 15:21
@ghost ghost added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Aug 12, 2021
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this changing?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was randomly inconsistent with the MainLayout.Auth.razor file. I think the link I've put here is the correct one out of the two.

Also I've moved these changes to a separate PR now: #35296

@SteveSandersonMS SteveSandersonMS force-pushed the stevesa/fix-wasm-hosted-debugging branch from 244a690 to cae1a84 Compare August 12, 2021 17:01
@SteveSandersonMS SteveSandersonMS enabled auto-merge (squash) August 12, 2021 18:24
@SteveSandersonMS SteveSandersonMS merged commit 043e87d into main Aug 12, 2021
@SteveSandersonMS SteveSandersonMS deleted the stevesa/fix-wasm-hosted-debugging branch August 12, 2021 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants