diff --git a/src/core/Akka/Serialization/Serializer.cs b/src/core/Akka/Serialization/Serializer.cs
index b5880918ede..cba8b275d96 100644
--- a/src/core/Akka/Serialization/Serializer.cs
+++ b/src/core/Akka/Serialization/Serializer.cs
@@ -83,7 +83,9 @@ protected Serializer(ExtendedActorSystem system)
/// TBD
public byte[] ToBinaryWithAddress(Address address, object obj)
{
+#pragma warning disable CS0618 // Type or member is obsolete
return Serialization.WithTransport(system, address, () => ToBinary(obj));
+#pragma warning restore CS0618 // Type or member is obsolete
}
///