Error adding Sentry to ASP.NET Core 2.2 site

When I try to add Sentry to a .NET Core 2.2 app using the instructions for .NET Core I get the following error

‘IWebHostBuilder’ does not contain a definition for ‘UseSentry’ and no accessible extension method ‘UseSentry’ accepting a first argument of type ‘IWebHostBuilder’ could be found (are you missing a using directive or an assembly reference?)

Hi @simon. Could you please confirm the package Sentry. AspNetCore was installed?

Nothing else other than installing this package is really required.

Thanks bruno, I had just added the Sentry nuget package

Hello, this settings fails to work for dotnet core 3.0