diff --git a/build/helpers.cs b/build/helpers.cs index afb8923..89d47d5 100644 --- a/build/helpers.cs +++ b/build/helpers.cs @@ -37,25 +37,3 @@ public static CakeTaskBuilder Default(this CakeTaskBuilder cakeTaskBuilder) } } - -public class FilePathJsonConverter : PathJsonConverter -{ - protected override FilePath ConvertFromString(string value) => FilePath.FromString(value); -} - -public abstract class PathJsonConverter : System.Text.Json.Serialization.JsonConverter where TPath : Cake.Core.IO.Path -{ - public override TPath Read(ref System.Text.Json.Utf8JsonReader reader, Type typeToConvert, System.Text.Json.JsonSerializerOptions options) - { - var value = reader.GetString(); - - return value is null ? null : ConvertFromString(value); - } - - public override void Write(System.Text.Json.Utf8JsonWriter writer, TPath value, System.Text.Json.JsonSerializerOptions options) - { - writer.WriteStringValue(value.FullPath); - } - - protected abstract TPath ConvertFromString(string value); -} \ No newline at end of file diff --git a/src/ARI.TestWeb/ARI.TestWeb.csproj b/src/ARI.TestWeb/ARI.TestWeb.csproj index 97d1922..7e2abec 100644 --- a/src/ARI.TestWeb/ARI.TestWeb.csproj +++ b/src/ARI.TestWeb/ARI.TestWeb.csproj @@ -12,17 +12,17 @@ - + - + - - + + - + diff --git a/src/ARI.Tests/ARI.Tests.csproj b/src/ARI.Tests/ARI.Tests.csproj index c692c47..b2ad201 100644 --- a/src/ARI.Tests/ARI.Tests.csproj +++ b/src/ARI.Tests/ARI.Tests.csproj @@ -70,7 +70,7 @@ all - + diff --git a/src/ARI/ARI.csproj b/src/ARI/ARI.csproj index 75153da..9b9e4f9 100644 --- a/src/ARI/ARI.csproj +++ b/src/ARI/ARI.csproj @@ -41,12 +41,12 @@ - - + + - + - +