PacktPublishing / Web-Development-with-Blazor-Third-Edition

Web Development with Blazor, Third Edition
MIT License
17 stars 13 forks source link

Chapter 7 - Missing `using`s #10

Open ClimberBear opened 1 month ago

ClimberBear commented 1 month ago

In the stating project of the chapter 7, I miss

using Microsoft.AspNetCore.Builder;`` for the classWebApplication` to be extended

and

using Microsoft.AspNetCore.Http;`` for theResults`class

I think you have to choose. Or using <ImplicitUsings>enable</ImplicitUsings> so no need to add usings (as the current code here) and then remove the usings in the book, or <ImplicitUsings>disable</ImplicitUsings> and then review the usings part. NOTE: I not used to use ImplicitUsings, and maybe I'm wrong. In this case, please correct me.

EngstromJimmy commented 1 month ago

Thanks for reporting this. Is this missing in the book and/or in the repo?

ClimberBear commented 1 month ago

Hi

Both.

The issue is that the repo works, because you are using implicit usings enabled.

Enviado desde Outlook para Androidhttps://aka.ms/AAb9ysg


From: Jimmy Engstrom @.> Sent: Wednesday, May 29, 2024 11:12:57 PM To: PacktPublishing/Web-Development-with-Blazor-Third-Edition @.> Cc: Jose Manuel Albarrán @.>; Author @.> Subject: Re: [PacktPublishing/Web-Development-with-Blazor-Third-Edition] Chapter 7 - Missing usings (Issue #10)

Thanks for reporting this. Is this missing in the book and/or in the repo?

— Reply to this email directly, view it on GitHubhttps://github.com/PacktPublishing/Web-Development-with-Blazor-Third-Edition/issues/10#issuecomment-2138273257, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFQBD36DV7GYCXIVY4FQISDZEZAFTAVCNFSM6AAAAABIPEZMS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZYGI3TGMRVG4. You are receiving this because you authored the thread.Message ID: @.***>