-
-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
When using Unity with the WebApplicationBuilder in .NET 8, adding the Diagnostic extension causes a System.AccessViolationException.
I noticed this when migrating our .NET Framework 4.8 app to .NET 8 and I haven't really found anything posted about it yet so I figured I would bring it to your attention.
This works:
var builder = WebApplication.CreateBuilder(args);
builder.Host.UseUnityServiceProvider();This causes the issue:
var builder = WebApplication.CreateBuilder(args);
builder.Host.UseUnityServiceProvider(new UnityContainer().AddExtension(new Diagnostic()));Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels