Conditionally build for MAUI targets (net6.0-android, etc) to change the Raygun4Net dependency
When using Serilog Sink in MAUI projects, the dependency on Mindscape.Raygun4Net.AspNetCore causes a dependency on ASP .NET in order to get the HttpContextAccessor, since this is not available in MAUI projects it breaks.
We now build for MAUI targets so we can pull in Mindscape.Raygun4Net.NetCore which does not have a dependency on the ASP .NET stuff, but also drops the need for the enrichment.
net6.0-android
, etc) to change the Raygun4Net dependencyWhen using Serilog Sink in MAUI projects, the dependency on
Mindscape.Raygun4Net.AspNetCore
causes a dependency on ASP .NET in order to get the HttpContextAccessor, since this is not available in MAUI projects it breaks.We now build for MAUI targets so we can pull in
Mindscape.Raygun4Net.NetCore
which does not have a dependency on the ASP .NET stuff, but also drops the need for the enrichment.