From 01f510e63775e18f656c234e151032cd9a1ffe3c Mon Sep 17 00:00:00 2001 From: David Lebee Date: Fri, 13 Aug 2021 14:55:08 -0400 Subject: [PATCH] multi target :) --- .../MvcBuilderExtensions.cs | 2 ++ ...Soft.DynamicQuery.AspNetCore.NewtonsoftJson.csproj | 11 ++++++++--- .../PoweredSoft.DynamicQuery.AspNetCore.csproj | 2 +- .../PoweredSoft.DynamicQuery.Core.csproj | 1 - PoweredSoft.DynamicQuery.NewtonsoftJson/Extensions.cs | 3 +-- .../PoweredSoft.DynamicQuery.NewtonsoftJson.csproj | 1 - .../PoweredSoft.DynamicQuery.Test.csproj | 2 +- .../PoweredSoft.DynamicQuery.csproj | 1 - 8 files changed, 13 insertions(+), 10 deletions(-) diff --git a/PoweredSoft.DynamicQuery.AspNetCore.NewtonsoftJson/MvcBuilderExtensions.cs b/PoweredSoft.DynamicQuery.AspNetCore.NewtonsoftJson/MvcBuilderExtensions.cs index f44d4af..4ec982f 100644 --- a/PoweredSoft.DynamicQuery.AspNetCore.NewtonsoftJson/MvcBuilderExtensions.cs +++ b/PoweredSoft.DynamicQuery.AspNetCore.NewtonsoftJson/MvcBuilderExtensions.cs @@ -9,10 +9,12 @@ namespace PoweredSoft.DynamicQuery.AspNetCore.NewtonsoftJson { mvcBuilder.AddPoweredSoftDynamicQuery(); var serviceProvider = mvcBuilder.Services.BuildServiceProvider(); + mvcBuilder.AddNewtonsoftJson(o => { o.SerializerSettings.AddPoweredSoftDynamicQueryNewtonsoftJson(serviceProvider, enableStringEnumConverter: enableStringEnumConverter); }); + return mvcBuilder; } } diff --git a/PoweredSoft.DynamicQuery.AspNetCore.NewtonsoftJson/PoweredSoft.DynamicQuery.AspNetCore.NewtonsoftJson.csproj b/PoweredSoft.DynamicQuery.AspNetCore.NewtonsoftJson/PoweredSoft.DynamicQuery.AspNetCore.NewtonsoftJson.csproj index 20d9c28..1dca74d 100644 --- a/PoweredSoft.DynamicQuery.AspNetCore.NewtonsoftJson/PoweredSoft.DynamicQuery.AspNetCore.NewtonsoftJson.csproj +++ b/PoweredSoft.DynamicQuery.AspNetCore.NewtonsoftJson/PoweredSoft.DynamicQuery.AspNetCore.NewtonsoftJson.csproj @@ -1,7 +1,7 @@  - net5.0 + netcoreapp3.1;net5.0 Powered Softwares Inc. MIT https://github.com/PoweredSoft/DynamicQuery @@ -20,9 +20,14 @@ + + + + + + + - - diff --git a/PoweredSoft.DynamicQuery.AspNetCore/PoweredSoft.DynamicQuery.AspNetCore.csproj b/PoweredSoft.DynamicQuery.AspNetCore/PoweredSoft.DynamicQuery.AspNetCore.csproj index 3779373..91d79d8 100644 --- a/PoweredSoft.DynamicQuery.AspNetCore/PoweredSoft.DynamicQuery.AspNetCore.csproj +++ b/PoweredSoft.DynamicQuery.AspNetCore/PoweredSoft.DynamicQuery.AspNetCore.csproj @@ -1,7 +1,7 @@  - net5.0 + netcoreapp3.1;net5.0 Powered Softwares Inc. MIT https://github.com/PoweredSoft/DynamicQuery diff --git a/PoweredSoft.DynamicQuery.Core/PoweredSoft.DynamicQuery.Core.csproj b/PoweredSoft.DynamicQuery.Core/PoweredSoft.DynamicQuery.Core.csproj index eae1ec0..3826280 100644 --- a/PoweredSoft.DynamicQuery.Core/PoweredSoft.DynamicQuery.Core.csproj +++ b/PoweredSoft.DynamicQuery.Core/PoweredSoft.DynamicQuery.Core.csproj @@ -19,7 +19,6 @@ - diff --git a/PoweredSoft.DynamicQuery.NewtonsoftJson/Extensions.cs b/PoweredSoft.DynamicQuery.NewtonsoftJson/Extensions.cs index e9f58a5..64c29e0 100644 --- a/PoweredSoft.DynamicQuery.NewtonsoftJson/Extensions.cs +++ b/PoweredSoft.DynamicQuery.NewtonsoftJson/Extensions.cs @@ -1,5 +1,4 @@ -using Microsoft.Extensions.DependencyInjection; -using Newtonsoft.Json; +using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System; diff --git a/PoweredSoft.DynamicQuery.NewtonsoftJson/PoweredSoft.DynamicQuery.NewtonsoftJson.csproj b/PoweredSoft.DynamicQuery.NewtonsoftJson/PoweredSoft.DynamicQuery.NewtonsoftJson.csproj index 8372fb3..f2abd27 100644 --- a/PoweredSoft.DynamicQuery.NewtonsoftJson/PoweredSoft.DynamicQuery.NewtonsoftJson.csproj +++ b/PoweredSoft.DynamicQuery.NewtonsoftJson/PoweredSoft.DynamicQuery.NewtonsoftJson.csproj @@ -18,7 +18,6 @@ - diff --git a/PoweredSoft.DynamicQuery.Test/PoweredSoft.DynamicQuery.Test.csproj b/PoweredSoft.DynamicQuery.Test/PoweredSoft.DynamicQuery.Test.csproj index 94be9d7..1f5faf8 100644 --- a/PoweredSoft.DynamicQuery.Test/PoweredSoft.DynamicQuery.Test.csproj +++ b/PoweredSoft.DynamicQuery.Test/PoweredSoft.DynamicQuery.Test.csproj @@ -1,7 +1,7 @@  - net5.0 + net5.0 false diff --git a/PoweredSoft.DynamicQuery/PoweredSoft.DynamicQuery.csproj b/PoweredSoft.DynamicQuery/PoweredSoft.DynamicQuery.csproj index 72db1e3..d7447ba 100644 --- a/PoweredSoft.DynamicQuery/PoweredSoft.DynamicQuery.csproj +++ b/PoweredSoft.DynamicQuery/PoweredSoft.DynamicQuery.csproj @@ -19,7 +19,6 @@ -