Open ClimberBear opened 1 month ago
Thanks for reporting this. Is this missing in the book and/or in the repo?
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 using
s (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: @.***>
In the stating project of the chapter 7, I miss
using Microsoft.AspNetCore.Builder;`` for the class
WebApplication` to be extendedand
using Microsoft.AspNetCore.Http;`` for the
Results`classI 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.