serilog-enrichers-clientinfo icon indicating copy to clipboard operation
serilog-enrichers-clientinfo copied to clipboard

2.0.3 no longer working with Blazor WASM

Open slackerbob opened this issue 1 year ago • 1 comments

As of 2.0.3, building a Blazor WASM app with Serilog.Enrichers.ClientInfo referenced results in the following build error:

error NETSDK1082: There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm'.

Downgrading the package to 2.0.1 works correctly.

I've tested the build process on Linux, Windows, and in docker, with the same results.

I'm wondering if it has anything to do with the <Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly"> required in WASM apps, vs <Project Sdk="Microsoft.NET.Sdk.Web"> in your sample app.

slackerbob avatar Nov 13 '23 19:11 slackerbob

It looks like after this change https://github.com/serilog-contrib/serilog-enrichers-clientinfo/commit/e0fa4cb22ffe8d41762523001172793ac9c9e564, it's broken. I need to figure out the right way to fix this issue dependency on a deprecated package and support the WASM app.

mo-esmp avatar Nov 14 '23 08:11 mo-esmp