From 07ab7f0c62c99bb1ceb7a57b8db6ea09b81c9136 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Tue, 30 Sep 2025 17:03:39 +0200 Subject: [PATCH] refactor(DataResult): update to execute if NET --- DigitalData.Core.Abstraction.Application/DTO/DataResult.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/DigitalData.Core.Abstraction.Application/DTO/DataResult.cs b/DigitalData.Core.Abstraction.Application/DTO/DataResult.cs index 43601d0..267ddce 100644 --- a/DigitalData.Core.Abstraction.Application/DTO/DataResult.cs +++ b/DigitalData.Core.Abstraction.Application/DTO/DataResult.cs @@ -1,4 +1,5 @@ -using System.Text.Json.Serialization; +#if NET +using System.Text.Json.Serialization; namespace DigitalData.Core.Abstraction.Application.DTO; @@ -25,4 +26,5 @@ public class DataResult : Result /// A failed with the current messages and notices. [Obsolete("Use DigitalData.Core.Exceptions and .Middleware")] public DataResult ToFail() => Fail().Message(Messages).Notice(Notices); -} \ No newline at end of file +} +#endif \ No newline at end of file