This might help someone in the future.
Known Workarounds
Move the members with [LoggerMessageAttribute] to a class library that does not contain a .XAML file and a reference to one of the packages that trigger the failure.
Source/Issue: https://github.com/dotnet/wpf/issues/9589