Error adding Sentry to ASP.NET Core 2.2 site


#1

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?)


#2

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

Nothing else other than installing this package is really required.


#3

Thanks bruno, I had just added the Sentry nuget package