diff --git a/BotSharp.Channel.FacebookMessenger/BotSharp.Channel.FacebookMessenger.csproj b/BotSharp.Channel.FacebookMessenger/BotSharp.Channel.FacebookMessenger.csproj index 4c70e861..73631115 100644 --- a/BotSharp.Channel.FacebookMessenger/BotSharp.Channel.FacebookMessenger.csproj +++ b/BotSharp.Channel.FacebookMessenger/BotSharp.Channel.FacebookMessenger.csproj @@ -10,7 +10,7 @@ - + diff --git a/BotSharp.Channel.FacebookMessenger/Controllers/FacebookMessengerController.cs b/BotSharp.Channel.FacebookMessenger/Controllers/FacebookMessengerController.cs index 458a84ba..2439765a 100644 --- a/BotSharp.Channel.FacebookMessenger/Controllers/FacebookMessengerController.cs +++ b/BotSharp.Channel.FacebookMessenger/Controllers/FacebookMessengerController.cs @@ -1,13 +1,11 @@ -using BotSharp.Channel.FacebookMessenger.Models; +using BotSharp.Channel.FacebookMessenger.Models; using BotSharp.Platform.Models; using EntityFrameworkCore.BootKit; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; -using Newtonsoft.Json.Linq; using Newtonsoft.Json.Serialization; using RestSharp; using System; -using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; @@ -97,7 +95,7 @@ namespace BotSharp.Channel.FacebookMessenger.Controllers { var client = new RestClient("https://graph.facebook.com"); - var rest = new RestRequest("v2.6/me/messages", Method.POST); + var rest = new RestRequest("v2.6/me/messages", Method.Post); string json = JsonConvert.SerializeObject(body, new JsonSerializerSettings { diff --git a/BotSharp.Channel.Weixin/BotSharp.Channel.Weixin.csproj b/BotSharp.Channel.Weixin/BotSharp.Channel.Weixin.csproj index c5cf908a..67762821 100644 --- a/BotSharp.Channel.Weixin/BotSharp.Channel.Weixin.csproj +++ b/BotSharp.Channel.Weixin/BotSharp.Channel.Weixin.csproj @@ -21,7 +21,7 @@ - + diff --git a/BotSharp.Channel.Weixin/Controllers/WeixinAsyncController.cs b/BotSharp.Channel.Weixin/Controllers/WeixinAsyncController.cs index fa7ffa11..8cd6ef07 100644 --- a/BotSharp.Channel.Weixin/Controllers/WeixinAsyncController.cs +++ b/BotSharp.Channel.Weixin/Controllers/WeixinAsyncController.cs @@ -5,6 +5,7 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using Senparc.CO2NET.AspNet.HttpUtility; using Senparc.CO2NET.HttpUtility; +using Senparc.Weixin.AspNet.MvcExtension; using Senparc.Weixin.MP; using Senparc.Weixin.MP.Entities.Request; using Senparc.Weixin.MP.MvcExtension; diff --git a/BotSharp.Core.UnitTest/BotSharp.Core.UnitTest.csproj b/BotSharp.Core.UnitTest/BotSharp.Core.UnitTest.csproj index 5db15bbf..2567305f 100644 --- a/BotSharp.Core.UnitTest/BotSharp.Core.UnitTest.csproj +++ b/BotSharp.Core.UnitTest/BotSharp.Core.UnitTest.csproj @@ -11,11 +11,11 @@ - - - - - + + + + + diff --git a/BotSharp.Core/BotSharp.Core.csproj b/BotSharp.Core/BotSharp.Core.csproj index 22799830..0b991307 100644 --- a/BotSharp.Core/BotSharp.Core.csproj +++ b/BotSharp.Core/BotSharp.Core.csproj @@ -69,15 +69,11 @@ - - - + + - - - - + diff --git a/BotSharp.WebHost/BotSharp.WebHost.csproj b/BotSharp.WebHost/BotSharp.WebHost.csproj index 930dcd8d..e0959d24 100644 --- a/BotSharp.WebHost/BotSharp.WebHost.csproj +++ b/BotSharp.WebHost/BotSharp.WebHost.csproj @@ -1,7 +1,7 @@ - $(DefaultTargetFramework) + net6.0 AnyCPU;x64 Debug;Release; 4ee89154-9131-4e6b-8fd5-d4f04a8d77c4 @@ -73,9 +73,9 @@ - - - + + +