From 7c65b52b127903bd74e0871c781d3dc551230646 Mon Sep 17 00:00:00 2001 From: CeciliaAvila Date: Mon, 4 Mar 2024 17:21:40 -0300 Subject: [PATCH 1/8] Update test projects to .NET8 --- .../Microsoft.Bot.Builder.FunctionalTests.csproj | 2 +- ...soft.Bot.Builder.Dialogs.Adaptive.Runtime.csproj | 6 +++--- ...lder.Integration.ApplicationInsights.Core.csproj | 6 +++--- ...osoft.Bot.Builder.Integration.AspNet.Core.csproj | 6 +++--- ...osoft.Bot.Builder.Adapters.Facebook.Tests.csproj | 4 ++-- ...icrosoft.Bot.Builder.Adapters.Slack.Tests.csproj | 4 ++-- ...crosoft.Bot.Builder.Adapters.Twilio.Tests.csproj | 4 ++-- ...icrosoft.Bot.Builder.Adapters.Webex.Tests.csproj | 4 ++-- .../AdaptiveExpressions.Tests.csproj | 4 ++-- .../ExpressionParserTests.cs | 4 ---- .../Microsoft.Bot.Builder.AI.Luis.Tests.csproj | 4 ++-- .../Microsoft.Bot.Builder.AI.Luis.TestUtils.csproj | 4 ++-- ...crosoft.Bot.Builder.AI.Orchestrator.Tests.csproj | 4 ++-- .../Microsoft.Bot.Builder.AI.QnA.Tests.csproj | 4 ++-- .../Microsoft.Bot.Builder.AI.LuisV3.Tests.csproj | 4 ++-- ...oft.Bot.Builder.ApplicationInsights.Tests.csproj | 4 ++-- .../Microsoft.Bot.Builder.Azure.Tests.csproj | 4 ++-- ...ft.Bot.Builder.Dialogs.Adaptive.Profiling.csproj | 2 +- ...ot.Builder.Dialogs.Adaptive.Runtime.Tests.csproj | 4 ++-- ....Builder.Dialogs.Adaptive.Templates.Tests.csproj | 4 ++-- .../ConditionalsTests.cs | 6 +----- ...rosoft.Bot.Builder.Dialogs.Adaptive.Tests.csproj | 4 ++-- ...osoft.Bot.Builder.Dialogs.Debugging.Tests.csproj | 4 ++-- ...oft.Bot.Builder.Dialogs.Declarative.Tests.csproj | 4 ++-- .../Microsoft.Bot.Builder.Dialogs.Tests.csproj | 4 ++-- ...soft.Bot.Builder.LanguageGeneration.Tests.csproj | 4 ++-- ...crosoft.Bot.Builder.TemplateManager.Tests.csproj | 4 ++-- .../Microsoft.Bot.Builder.TestBot.Tests.csproj | 4 ++-- .../Microsoft.Bot.Builder.TestProtocol.csproj | 2 +- .../Microsoft.Bot.Builder.Testing.Tests.csproj | 4 ++-- .../Microsoft.Bot.Builder.Tests.csproj | 4 ++-- .../Microsoft.Bot.Builder.Transcripts.Tests.csproj | 4 ++-- .../Microsoft.Bot.Configuration.Tests.csproj | 4 ++-- .../Microsoft.Bot.Connector.Streaming.Perf.csproj | 2 +- ...soft.Bot.Connector.Streaming.Tests.Client.csproj | 2 +- ...soft.Bot.Connector.Streaming.Tests.Server.csproj | 2 +- .../Microsoft.Bot.Connector.Streaming.Tests.csproj | 4 ++-- .../Authentication/JwtTokenExtractorTests.cs | 4 ---- tests/Microsoft.Bot.Connector.Tests/BaseTest.cs | 2 +- .../Microsoft.Bot.Connector.Tests.csproj | 4 ++-- .../Microsoft.Bot.Schema.Tests.csproj | 4 ++-- .../Microsoft.Bot.Streaming.Tests.csproj | 4 ++-- .../Microsoft.Bot.Builder.Parsers.LU.Tests.csproj | 4 ++-- ...rosoft.Bot.ApplicationInsights.Core.Tests.csproj | 13 +++---------- ...Bot.Builder.Integration.AspNet.Core.Tests.csproj | 4 ++-- 45 files changed, 82 insertions(+), 101 deletions(-) diff --git a/FunctionalTests/Microsoft.Bot.Builder.FunctionalTests/Microsoft.Bot.Builder.FunctionalTests.csproj b/FunctionalTests/Microsoft.Bot.Builder.FunctionalTests/Microsoft.Bot.Builder.FunctionalTests.csproj index 7df3ce0281..44a4e6919b 100644 --- a/FunctionalTests/Microsoft.Bot.Builder.FunctionalTests/Microsoft.Bot.Builder.FunctionalTests.csproj +++ b/FunctionalTests/Microsoft.Bot.Builder.FunctionalTests/Microsoft.Bot.Builder.FunctionalTests.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 false Debug;Release; diff --git a/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.csproj b/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.csproj index 382c05e538..474e068f0a 100644 --- a/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.csproj +++ b/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.csproj @@ -10,7 +10,7 @@ - netstandard2.0;netcoreapp3.1;net6.0 + netstandard2.0;net6.0;net8.0 Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime Library for building Adaptive Runtime bots using the Bot Framework SDK Library for building Adaptive Runtime bots using the Bot Framework SDK @@ -22,11 +22,11 @@ true - + - + diff --git a/libraries/integration/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.csproj b/libraries/integration/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.csproj index 6806a3a40a..b7643b28d6 100644 --- a/libraries/integration/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.csproj +++ b/libraries/integration/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.csproj @@ -9,7 +9,7 @@ - netstandard2.0;netcoreapp3.1;net6.0 + netstandard2.0;net6.0;net8.0 Microsoft.Bot.Builder.Integration.ApplicationInsights.Core This library integrates the Microsoft Bot Builder SDK with Application Insights. This library provides integration between the Microsoft Bot Builder SDK and Application Insights. @@ -20,7 +20,7 @@ true - + @@ -28,7 +28,7 @@ - + diff --git a/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/Microsoft.Bot.Builder.Integration.AspNet.Core.csproj b/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/Microsoft.Bot.Builder.Integration.AspNet.Core.csproj index 4cc48c2b14..7df01c8d8b 100644 --- a/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/Microsoft.Bot.Builder.Integration.AspNet.Core.csproj +++ b/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/Microsoft.Bot.Builder.Integration.AspNet.Core.csproj @@ -9,7 +9,7 @@ - netstandard2.0;netcoreapp3.1;net6.0 + netstandard2.0;net6.0;net8.0 This library integrates the Microsoft Bot Builder SDK with ASP.NET Core. It offers idiomatic configuration APIs in addition to providing all the plumbing to direct incoming bot messages to a configured bot. This library provides integration between the Microsoft Bot Builder SDK and ASP.NET Core. @@ -19,11 +19,11 @@ true - + - + diff --git a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Facebook.Tests/Microsoft.Bot.Builder.Adapters.Facebook.Tests.csproj b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Facebook.Tests/Microsoft.Bot.Builder.Adapters.Facebook.Tests.csproj index 0329967992..831ff82f2e 100644 --- a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Facebook.Tests/Microsoft.Bot.Builder.Adapters.Facebook.Tests.csproj +++ b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Facebook.Tests/Microsoft.Bot.Builder.Adapters.Facebook.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false diff --git a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Slack.Tests/Microsoft.Bot.Builder.Adapters.Slack.Tests.csproj b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Slack.Tests/Microsoft.Bot.Builder.Adapters.Slack.Tests.csproj index 66bea7cca7..8ed87c6ece 100644 --- a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Slack.Tests/Microsoft.Bot.Builder.Adapters.Slack.Tests.csproj +++ b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Slack.Tests/Microsoft.Bot.Builder.Adapters.Slack.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false diff --git a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Twilio.Tests/Microsoft.Bot.Builder.Adapters.Twilio.Tests.csproj b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Twilio.Tests/Microsoft.Bot.Builder.Adapters.Twilio.Tests.csproj index f6907b83fb..eb7b6fa949 100644 --- a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Twilio.Tests/Microsoft.Bot.Builder.Adapters.Twilio.Tests.csproj +++ b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Twilio.Tests/Microsoft.Bot.Builder.Adapters.Twilio.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false diff --git a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Webex.Tests/Microsoft.Bot.Builder.Adapters.Webex.Tests.csproj b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Webex.Tests/Microsoft.Bot.Builder.Adapters.Webex.Tests.csproj index d7647a9248..f38fb0c471 100644 --- a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Webex.Tests/Microsoft.Bot.Builder.Adapters.Webex.Tests.csproj +++ b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Webex.Tests/Microsoft.Bot.Builder.Adapters.Webex.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false diff --git a/tests/AdaptiveExpressions.Tests/AdaptiveExpressions.Tests.csproj b/tests/AdaptiveExpressions.Tests/AdaptiveExpressions.Tests.csproj index fad7faaed4..480ce3c3a3 100644 --- a/tests/AdaptiveExpressions.Tests/AdaptiveExpressions.Tests.csproj +++ b/tests/AdaptiveExpressions.Tests/AdaptiveExpressions.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false diff --git a/tests/AdaptiveExpressions.Tests/ExpressionParserTests.cs b/tests/AdaptiveExpressions.Tests/ExpressionParserTests.cs index c926219ddb..1734d33799 100644 --- a/tests/AdaptiveExpressions.Tests/ExpressionParserTests.cs +++ b/tests/AdaptiveExpressions.Tests/ExpressionParserTests.cs @@ -1048,11 +1048,7 @@ public class ExpressionParserTests Test("lastIndexOf(newGuid(), '-')", 23), Test("lastIndexOf(hello, '-')", -1), Test("lastIndexOf(nullObj, '-')", -1), -#if NET5_0_OR_GREATER //There's a breaking change in .NET5 for this particular case. See https://docs.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/5.0/lastindexof-improved-handling-of-empty-values#change-description Test("lastIndexOf(hello, nullObj)", 5), -#else - Test("lastIndexOf(hello, nullObj)", 4), -#endif Test("lastIndexOf(json('[\"a\", \"b\", \"a\"]'), 'a')", 2), Test("lastIndexOf(json('[\"a\", \"b\"]'), 'c')", -1), Test("lastIndexOf(createArray('abc', 'def', 'ghi', 'def'), 'def')", 3), diff --git a/tests/Microsoft.Bot.Builder.AI.LUIS.Tests/Microsoft.Bot.Builder.AI.Luis.Tests.csproj b/tests/Microsoft.Bot.Builder.AI.LUIS.Tests/Microsoft.Bot.Builder.AI.Luis.Tests.csproj index 26acac56d3..e088eda614 100644 --- a/tests/Microsoft.Bot.Builder.AI.LUIS.Tests/Microsoft.Bot.Builder.AI.Luis.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.AI.LUIS.Tests/Microsoft.Bot.Builder.AI.Luis.Tests.csproj @@ -1,8 +1,8 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.AI.Luis.TestUtils/Microsoft.Bot.Builder.AI.Luis.TestUtils.csproj b/tests/Microsoft.Bot.Builder.AI.Luis.TestUtils/Microsoft.Bot.Builder.AI.Luis.TestUtils.csproj index 0308038fa5..0463e60def 100644 --- a/tests/Microsoft.Bot.Builder.AI.Luis.TestUtils/Microsoft.Bot.Builder.AI.Luis.TestUtils.csproj +++ b/tests/Microsoft.Bot.Builder.AI.Luis.TestUtils/Microsoft.Bot.Builder.AI.Luis.TestUtils.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 Debug;Release diff --git a/tests/Microsoft.Bot.Builder.AI.Orchestrator.Tests/Microsoft.Bot.Builder.AI.Orchestrator.Tests.csproj b/tests/Microsoft.Bot.Builder.AI.Orchestrator.Tests/Microsoft.Bot.Builder.AI.Orchestrator.Tests.csproj index 770f0ace9a..eec69ac979 100644 --- a/tests/Microsoft.Bot.Builder.AI.Orchestrator.Tests/Microsoft.Bot.Builder.AI.Orchestrator.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.AI.Orchestrator.Tests/Microsoft.Bot.Builder.AI.Orchestrator.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.AI.QnA.Tests/Microsoft.Bot.Builder.AI.QnA.Tests.csproj b/tests/Microsoft.Bot.Builder.AI.QnA.Tests/Microsoft.Bot.Builder.AI.QnA.Tests.csproj index dd0aa3e4e5..ce5ae5e353 100644 --- a/tests/Microsoft.Bot.Builder.AI.QnA.Tests/Microsoft.Bot.Builder.AI.QnA.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.AI.QnA.Tests/Microsoft.Bot.Builder.AI.QnA.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.Ai.LUISV3.tests/Microsoft.Bot.Builder.AI.LuisV3.Tests.csproj b/tests/Microsoft.Bot.Builder.Ai.LUISV3.tests/Microsoft.Bot.Builder.AI.LuisV3.Tests.csproj index 0a873a05d6..75aa1b792b 100644 --- a/tests/Microsoft.Bot.Builder.Ai.LUISV3.tests/Microsoft.Bot.Builder.AI.LuisV3.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Ai.LUISV3.tests/Microsoft.Bot.Builder.AI.LuisV3.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.ApplicationInsights.Tests/Microsoft.Bot.Builder.ApplicationInsights.Tests.csproj b/tests/Microsoft.Bot.Builder.ApplicationInsights.Tests/Microsoft.Bot.Builder.ApplicationInsights.Tests.csproj index 85d62cc8bd..cb09814de0 100644 --- a/tests/Microsoft.Bot.Builder.ApplicationInsights.Tests/Microsoft.Bot.Builder.ApplicationInsights.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.ApplicationInsights.Tests/Microsoft.Bot.Builder.ApplicationInsights.Tests.csproj @@ -1,8 +1,8 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.Azure.Tests/Microsoft.Bot.Builder.Azure.Tests.csproj b/tests/Microsoft.Bot.Builder.Azure.Tests/Microsoft.Bot.Builder.Azure.Tests.csproj index 5fbcb90c38..6e43022e2d 100644 --- a/tests/Microsoft.Bot.Builder.Azure.Tests/Microsoft.Bot.Builder.Azure.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Azure.Tests/Microsoft.Bot.Builder.Azure.Tests.csproj @@ -1,8 +1,8 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Profiling/Microsoft.Bot.Builder.Dialogs.Adaptive.Profiling.csproj b/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Profiling/Microsoft.Bot.Builder.Dialogs.Adaptive.Profiling.csproj index f5ec262188..188786adfc 100644 --- a/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Profiling/Microsoft.Bot.Builder.Dialogs.Adaptive.Profiling.csproj +++ b/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Profiling/Microsoft.Bot.Builder.Dialogs.Adaptive.Profiling.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 diff --git a/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.Tests.csproj b/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.Tests.csproj index 114ec65dc9..c927f317f1 100644 --- a/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Templates.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Templates.Tests.csproj b/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Templates.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Templates.Tests.csproj index 2e78fa5683..478481337b 100644 --- a/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Templates.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Templates.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Templates.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Templates.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false diff --git a/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests/ConditionalsTests.cs b/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests/ConditionalsTests.cs index 2cacc2bc17..6b87d96a64 100644 --- a/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests/ConditionalsTests.cs +++ b/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests/ConditionalsTests.cs @@ -1,16 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System; using System.Collections.Generic; using System.Diagnostics; -using System.Linq; -using System.Reflection; using System.Threading.Tasks; using Microsoft.Bot.Builder.Dialogs.Adaptive.Conditions; using Microsoft.Bot.Schema; using Xunit; -using dbg = System.Diagnostics; namespace Microsoft.Bot.Builder.Dialogs.Adaptive.Tests { @@ -246,7 +242,7 @@ public void OnConditionWithCondition() private void AssertExpression(OnCondition condition, string expectedExpression) { var exp = condition.GetExpression(); - dbg.Trace.TraceInformation(exp.ToString()); + Trace.TraceInformation(exp.ToString()); Assert.Equal(expectedExpression, exp.ToString()); } } diff --git a/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests.csproj b/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests.csproj index 0a77e88218..5dc4379fb7 100644 --- a/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.Dialogs.Debugging.Tests/Microsoft.Bot.Builder.Dialogs.Debugging.Tests.csproj b/tests/Microsoft.Bot.Builder.Dialogs.Debugging.Tests/Microsoft.Bot.Builder.Dialogs.Debugging.Tests.csproj index fd27423919..6efb8f8fcc 100644 --- a/tests/Microsoft.Bot.Builder.Dialogs.Debugging.Tests/Microsoft.Bot.Builder.Dialogs.Debugging.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Dialogs.Debugging.Tests/Microsoft.Bot.Builder.Dialogs.Debugging.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false diff --git a/tests/Microsoft.Bot.Builder.Dialogs.Declarative.Tests/Microsoft.Bot.Builder.Dialogs.Declarative.Tests.csproj b/tests/Microsoft.Bot.Builder.Dialogs.Declarative.Tests/Microsoft.Bot.Builder.Dialogs.Declarative.Tests.csproj index 28db0dba9e..afaeb1cdac 100644 --- a/tests/Microsoft.Bot.Builder.Dialogs.Declarative.Tests/Microsoft.Bot.Builder.Dialogs.Declarative.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Dialogs.Declarative.Tests/Microsoft.Bot.Builder.Dialogs.Declarative.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false diff --git a/tests/Microsoft.Bot.Builder.Dialogs.Tests/Microsoft.Bot.Builder.Dialogs.Tests.csproj b/tests/Microsoft.Bot.Builder.Dialogs.Tests/Microsoft.Bot.Builder.Dialogs.Tests.csproj index 6025754fd3..23510df1db 100644 --- a/tests/Microsoft.Bot.Builder.Dialogs.Tests/Microsoft.Bot.Builder.Dialogs.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Dialogs.Tests/Microsoft.Bot.Builder.Dialogs.Tests.csproj @@ -1,8 +1,8 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.LanguageGeneration.Tests/Microsoft.Bot.Builder.LanguageGeneration.Tests.csproj b/tests/Microsoft.Bot.Builder.LanguageGeneration.Tests/Microsoft.Bot.Builder.LanguageGeneration.Tests.csproj index 2180c32316..a686b99992 100644 --- a/tests/Microsoft.Bot.Builder.LanguageGeneration.Tests/Microsoft.Bot.Builder.LanguageGeneration.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.LanguageGeneration.Tests/Microsoft.Bot.Builder.LanguageGeneration.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false diff --git a/tests/Microsoft.Bot.Builder.TemplateManager/Microsoft.Bot.Builder.TemplateManager.Tests.csproj b/tests/Microsoft.Bot.Builder.TemplateManager/Microsoft.Bot.Builder.TemplateManager.Tests.csproj index 073982c28c..5063adef50 100644 --- a/tests/Microsoft.Bot.Builder.TemplateManager/Microsoft.Bot.Builder.TemplateManager.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.TemplateManager/Microsoft.Bot.Builder.TemplateManager.Tests.csproj @@ -1,8 +1,8 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.TestBot.Tests/Microsoft.Bot.Builder.TestBot.Tests.csproj b/tests/Microsoft.Bot.Builder.TestBot.Tests/Microsoft.Bot.Builder.TestBot.Tests.csproj index 292067b124..53ab3cd1f7 100644 --- a/tests/Microsoft.Bot.Builder.TestBot.Tests/Microsoft.Bot.Builder.TestBot.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.TestBot.Tests/Microsoft.Bot.Builder.TestBot.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false Microsoft.Bot.Builder.TestBot.Tests Microsoft.BotBuilderSamples.Tests diff --git a/tests/Microsoft.Bot.Builder.TestProtocol/Microsoft.Bot.Builder.TestProtocol.csproj b/tests/Microsoft.Bot.Builder.TestProtocol/Microsoft.Bot.Builder.TestProtocol.csproj index 9a552854bb..ec8d0791e8 100644 --- a/tests/Microsoft.Bot.Builder.TestProtocol/Microsoft.Bot.Builder.TestProtocol.csproj +++ b/tests/Microsoft.Bot.Builder.TestProtocol/Microsoft.Bot.Builder.TestProtocol.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 1ae6e573-b022-4bd5-b6b5-7ea57e4977f8 diff --git a/tests/Microsoft.Bot.Builder.Testing.Tests/Microsoft.Bot.Builder.Testing.Tests.csproj b/tests/Microsoft.Bot.Builder.Testing.Tests/Microsoft.Bot.Builder.Testing.Tests.csproj index ddf5c55a76..040fac29a7 100644 --- a/tests/Microsoft.Bot.Builder.Testing.Tests/Microsoft.Bot.Builder.Testing.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Testing.Tests/Microsoft.Bot.Builder.Testing.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.Tests/Microsoft.Bot.Builder.Tests.csproj b/tests/Microsoft.Bot.Builder.Tests/Microsoft.Bot.Builder.Tests.csproj index fc47b8cbfc..269dc933d4 100644 --- a/tests/Microsoft.Bot.Builder.Tests/Microsoft.Bot.Builder.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Tests/Microsoft.Bot.Builder.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.Transcripts.Tests/Microsoft.Bot.Builder.Transcripts.Tests.csproj b/tests/Microsoft.Bot.Builder.Transcripts.Tests/Microsoft.Bot.Builder.Transcripts.Tests.csproj index d57f401a58..cafdff2b57 100644 --- a/tests/Microsoft.Bot.Builder.Transcripts.Tests/Microsoft.Bot.Builder.Transcripts.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Transcripts.Tests/Microsoft.Bot.Builder.Transcripts.Tests.csproj @@ -1,8 +1,8 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Configuration.Tests/Microsoft.Bot.Configuration.Tests.csproj b/tests/Microsoft.Bot.Configuration.Tests/Microsoft.Bot.Configuration.Tests.csproj index a904dc0ee1..b7450af6a5 100644 --- a/tests/Microsoft.Bot.Configuration.Tests/Microsoft.Bot.Configuration.Tests.csproj +++ b/tests/Microsoft.Bot.Configuration.Tests/Microsoft.Bot.Configuration.Tests.csproj @@ -1,8 +1,8 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Connector.Streaming.Perf/Microsoft.Bot.Connector.Streaming.Perf.csproj b/tests/Microsoft.Bot.Connector.Streaming.Perf/Microsoft.Bot.Connector.Streaming.Perf.csproj index a3b9450b86..6781c2f8a2 100644 --- a/tests/Microsoft.Bot.Connector.Streaming.Perf/Microsoft.Bot.Connector.Streaming.Perf.csproj +++ b/tests/Microsoft.Bot.Connector.Streaming.Perf/Microsoft.Bot.Connector.Streaming.Perf.csproj @@ -3,7 +3,7 @@ Exe - net6.0 + net8.0 diff --git a/tests/Microsoft.Bot.Connector.Streaming.Tests.Client/Microsoft.Bot.Connector.Streaming.Tests.Client.csproj b/tests/Microsoft.Bot.Connector.Streaming.Tests.Client/Microsoft.Bot.Connector.Streaming.Tests.Client.csproj index b8adb3d45c..360c8247d4 100644 --- a/tests/Microsoft.Bot.Connector.Streaming.Tests.Client/Microsoft.Bot.Connector.Streaming.Tests.Client.csproj +++ b/tests/Microsoft.Bot.Connector.Streaming.Tests.Client/Microsoft.Bot.Connector.Streaming.Tests.Client.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 diff --git a/tests/Microsoft.Bot.Connector.Streaming.Tests.Server/Microsoft.Bot.Connector.Streaming.Tests.Server.csproj b/tests/Microsoft.Bot.Connector.Streaming.Tests.Server/Microsoft.Bot.Connector.Streaming.Tests.Server.csproj index a5bb39461f..d7c89f90d8 100644 --- a/tests/Microsoft.Bot.Connector.Streaming.Tests.Server/Microsoft.Bot.Connector.Streaming.Tests.Server.csproj +++ b/tests/Microsoft.Bot.Connector.Streaming.Tests.Server/Microsoft.Bot.Connector.Streaming.Tests.Server.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 latest diff --git a/tests/Microsoft.Bot.Connector.Streaming.Tests/Microsoft.Bot.Connector.Streaming.Tests.csproj b/tests/Microsoft.Bot.Connector.Streaming.Tests/Microsoft.Bot.Connector.Streaming.Tests.csproj index 8bc7f56d25..97dc0a9764 100644 --- a/tests/Microsoft.Bot.Connector.Streaming.Tests/Microsoft.Bot.Connector.Streaming.Tests.csproj +++ b/tests/Microsoft.Bot.Connector.Streaming.Tests/Microsoft.Bot.Connector.Streaming.Tests.csproj @@ -1,9 +1,9 @@ - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Connector.Tests/Authentication/JwtTokenExtractorTests.cs b/tests/Microsoft.Bot.Connector.Tests/Authentication/JwtTokenExtractorTests.cs index 6492c172c5..11863aaa5e 100644 --- a/tests/Microsoft.Bot.Connector.Tests/Authentication/JwtTokenExtractorTests.cs +++ b/tests/Microsoft.Bot.Connector.Tests/Authentication/JwtTokenExtractorTests.cs @@ -158,9 +158,7 @@ private static TokenValidationParameters CreateTokenValidationParameters(X509Cer }; } -#if NET5_0_OR_GREATER [SupportedOSPlatform("windows")] -#endif private static X509Certificate2 CreateSelfSignedCertificate(string cn, DateTimeOffset from, DateTimeOffset to) { var parameters = new CspParameters(24, "Microsoft Enhanced RSA and AES Cryptographic Provider") @@ -186,9 +184,7 @@ private static X509Certificate2 CreateSelfSignedCertificate(string cn, DateTimeO return cert; } -#if NET5_0_OR_GREATER [SupportedOSPlatform("windows")] -#endif private static void DeleteKeyContainer(string cn) { // %APPDATA%\Microsoft\Crypto\RSA diff --git a/tests/Microsoft.Bot.Connector.Tests/BaseTest.cs b/tests/Microsoft.Bot.Connector.Tests/BaseTest.cs index 2fc885adc5..be6822c73c 100644 --- a/tests/Microsoft.Bot.Connector.Tests/BaseTest.cs +++ b/tests/Microsoft.Bot.Connector.Tests/BaseTest.cs @@ -31,7 +31,7 @@ namespace Microsoft.Bot.Connector.Tests /// /// To re-record: /// 1. All from live/unmocked, except set HttpRecorderMode to Record. - /// 2. Once done recording, copy recording sessions from ...Microsoft.Bot.Connector.Tests\bin\Debug\netcoreapp3.1\SessionRecords + /// 2. Once done recording, copy recording sessions from ...Microsoft.Bot.Connector.Tests\bin\Debug\net8.0\SessionRecords /// to ...Microsoft.Bot.Connector.Tests\SessionRecords. /// public class BaseTest diff --git a/tests/Microsoft.Bot.Connector.Tests/Microsoft.Bot.Connector.Tests.csproj b/tests/Microsoft.Bot.Connector.Tests/Microsoft.Bot.Connector.Tests.csproj index 445d81abcc..4470b7d813 100644 --- a/tests/Microsoft.Bot.Connector.Tests/Microsoft.Bot.Connector.Tests.csproj +++ b/tests/Microsoft.Bot.Connector.Tests/Microsoft.Bot.Connector.Tests.csproj @@ -1,8 +1,8 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Schema.Tests/Microsoft.Bot.Schema.Tests.csproj b/tests/Microsoft.Bot.Schema.Tests/Microsoft.Bot.Schema.Tests.csproj index 3182bf50aa..9e75a9c0fe 100644 --- a/tests/Microsoft.Bot.Schema.Tests/Microsoft.Bot.Schema.Tests.csproj +++ b/tests/Microsoft.Bot.Schema.Tests/Microsoft.Bot.Schema.Tests.csproj @@ -1,8 +1,8 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Streaming.Tests/Microsoft.Bot.Streaming.Tests.csproj b/tests/Microsoft.Bot.Streaming.Tests/Microsoft.Bot.Streaming.Tests.csproj index ff0cdda811..6f98c09374 100644 --- a/tests/Microsoft.Bot.Streaming.Tests/Microsoft.Bot.Streaming.Tests.csproj +++ b/tests/Microsoft.Bot.Streaming.Tests/Microsoft.Bot.Streaming.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false diff --git a/tests/Parsers/Microsoft.Bot.Builder.Parsers.LU.Tests/Microsoft.Bot.Builder.Parsers.LU.Tests.csproj b/tests/Parsers/Microsoft.Bot.Builder.Parsers.LU.Tests/Microsoft.Bot.Builder.Parsers.LU.Tests.csproj index c6bfe45d6e..d513938ef2 100644 --- a/tests/Parsers/Microsoft.Bot.Builder.Parsers.LU.Tests/Microsoft.Bot.Builder.Parsers.LU.Tests.csproj +++ b/tests/Parsers/Microsoft.Bot.Builder.Parsers.LU.Tests/Microsoft.Bot.Builder.Parsers.LU.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false false Debug;Release diff --git a/tests/integration/Microsoft.Bot.ApplicationInsights.Core.Tests/Microsoft.Bot.ApplicationInsights.Core.Tests.csproj b/tests/integration/Microsoft.Bot.ApplicationInsights.Core.Tests/Microsoft.Bot.ApplicationInsights.Core.Tests.csproj index 6d561d6514..0ea94da37d 100644 --- a/tests/integration/Microsoft.Bot.ApplicationInsights.Core.Tests/Microsoft.Bot.ApplicationInsights.Core.Tests.csproj +++ b/tests/integration/Microsoft.Bot.ApplicationInsights.Core.Tests/Microsoft.Bot.ApplicationInsights.Core.Tests.csproj @@ -1,24 +1,17 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false false Debug;Release - - - - - - - - + diff --git a/tests/integration/Microsoft.Bot.Builder.Integration.AspNet.Core.Tests/Microsoft.Bot.Builder.Integration.AspNet.Core.Tests.csproj b/tests/integration/Microsoft.Bot.Builder.Integration.AspNet.Core.Tests/Microsoft.Bot.Builder.Integration.AspNet.Core.Tests.csproj index 52c41ac3ce..7620ff56c7 100644 --- a/tests/integration/Microsoft.Bot.Builder.Integration.AspNet.Core.Tests/Microsoft.Bot.Builder.Integration.AspNet.Core.Tests.csproj +++ b/tests/integration/Microsoft.Bot.Builder.Integration.AspNet.Core.Tests/Microsoft.Bot.Builder.Integration.AspNet.Core.Tests.csproj @@ -1,9 +1,9 @@  - netcoreapp3.1 net6.0 - netcoreapp3.1;net6.0 + net8.0 + net6.0;net8.0 false false Debug;Release From 405c6fdccaa455007f68ce29fa82321257a9e0dd Mon Sep 17 00:00:00 2001 From: CeciliaAvila Date: Mon, 4 Mar 2024 17:22:55 -0300 Subject: [PATCH 2/8] Update test bots to .NET8 --- ...icrosoft.Bot.Builder.Adapters.Facebook.PrimaryTestBot.csproj | 2 +- ...rosoft.Bot.Builder.Adapters.Facebook.SecondaryTestBot.csproj | 2 +- .../Microsoft.Bot.Builder.Adapters.Slack.TestBot.csproj | 2 +- .../Microsoft.Bot.Builder.Adapters.Twilio.TestBot.csproj | 2 +- .../Microsoft.Bot.Builder.Adapters.Webex.TestBot.csproj | 2 +- tests/Auth/bot-authentication/AuthenticationBot.csproj | 2 +- .../Microsoft.Bot.Builder.TestBot.Json.csproj | 2 +- .../Microsoft.Bot.Builder.TestBot.csproj | 2 +- tests/Microsoft.Bot.Builder.TestBot/wwwroot/default.htm | 2 +- tests/Skills/Bot1/Bot1.csproj | 2 +- tests/Skills/Bot2/Bot2.csproj | 2 +- tests/Skills/Bot3/Bot3.csproj | 2 +- tests/Skills/Child/Child.csproj | 2 +- tests/Skills/Parent/Parent.csproj | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Facebook.PrimaryTestBot/Microsoft.Bot.Builder.Adapters.Facebook.PrimaryTestBot.csproj b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Facebook.PrimaryTestBot/Microsoft.Bot.Builder.Adapters.Facebook.PrimaryTestBot.csproj index 8969d97287..8ec7934a77 100644 --- a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Facebook.PrimaryTestBot/Microsoft.Bot.Builder.Adapters.Facebook.PrimaryTestBot.csproj +++ b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Facebook.PrimaryTestBot/Microsoft.Bot.Builder.Adapters.Facebook.PrimaryTestBot.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 594af4a1-e396-4609-8198-d665eb0c1f78 diff --git a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Facebook.SecondaryTestBot/Microsoft.Bot.Builder.Adapters.Facebook.SecondaryTestBot.csproj b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Facebook.SecondaryTestBot/Microsoft.Bot.Builder.Adapters.Facebook.SecondaryTestBot.csproj index 050fd340b9..e75d23f6b9 100644 --- a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Facebook.SecondaryTestBot/Microsoft.Bot.Builder.Adapters.Facebook.SecondaryTestBot.csproj +++ b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Facebook.SecondaryTestBot/Microsoft.Bot.Builder.Adapters.Facebook.SecondaryTestBot.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 dae2bae8-b3c8-4b83-8b3c-4022669c7a20 diff --git a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Slack.TestBot/Microsoft.Bot.Builder.Adapters.Slack.TestBot.csproj b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Slack.TestBot/Microsoft.Bot.Builder.Adapters.Slack.TestBot.csproj index 3727fdd0b7..70d81038b4 100644 --- a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Slack.TestBot/Microsoft.Bot.Builder.Adapters.Slack.TestBot.csproj +++ b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Slack.TestBot/Microsoft.Bot.Builder.Adapters.Slack.TestBot.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 $(NoWarn),CS8002 3c783a33-e2a5-4acd-99dd-581d563d47e3 diff --git a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Twilio.TestBot/Microsoft.Bot.Builder.Adapters.Twilio.TestBot.csproj b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Twilio.TestBot/Microsoft.Bot.Builder.Adapters.Twilio.TestBot.csproj index a8f65198d3..68a5824fef 100644 --- a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Twilio.TestBot/Microsoft.Bot.Builder.Adapters.Twilio.TestBot.csproj +++ b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Twilio.TestBot/Microsoft.Bot.Builder.Adapters.Twilio.TestBot.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 latest diff --git a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Webex.TestBot/Microsoft.Bot.Builder.Adapters.Webex.TestBot.csproj b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Webex.TestBot/Microsoft.Bot.Builder.Adapters.Webex.TestBot.csproj index 1909710010..884d6c35f4 100644 --- a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Webex.TestBot/Microsoft.Bot.Builder.Adapters.Webex.TestBot.csproj +++ b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Webex.TestBot/Microsoft.Bot.Builder.Adapters.Webex.TestBot.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 $(NoWarn),CS8002 63730bc1-f7d4-4b32-8efe-ce03907b3e0a diff --git a/tests/Auth/bot-authentication/AuthenticationBot.csproj b/tests/Auth/bot-authentication/AuthenticationBot.csproj index 7c64ea6081..044225b973 100644 --- a/tests/Auth/bot-authentication/AuthenticationBot.csproj +++ b/tests/Auth/bot-authentication/AuthenticationBot.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 latest diff --git a/tests/Microsoft.Bot.Builder.TestBot.Json/Microsoft.Bot.Builder.TestBot.Json.csproj b/tests/Microsoft.Bot.Builder.TestBot.Json/Microsoft.Bot.Builder.TestBot.Json.csproj index 5aa4151b12..f0b183fbb0 100644 --- a/tests/Microsoft.Bot.Builder.TestBot.Json/Microsoft.Bot.Builder.TestBot.Json.csproj +++ b/tests/Microsoft.Bot.Builder.TestBot.Json/Microsoft.Bot.Builder.TestBot.Json.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TestBot Debug;Release diff --git a/tests/Microsoft.Bot.Builder.TestBot/Microsoft.Bot.Builder.TestBot.csproj b/tests/Microsoft.Bot.Builder.TestBot/Microsoft.Bot.Builder.TestBot.csproj index 483caf6990..aa89e7e99d 100644 --- a/tests/Microsoft.Bot.Builder.TestBot/Microsoft.Bot.Builder.TestBot.csproj +++ b/tests/Microsoft.Bot.Builder.TestBot/Microsoft.Bot.Builder.TestBot.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 f277272c-9113-411f-addd-a4acfa9701a2 Microsoft.BotBuilderSamples diff --git a/tests/Microsoft.Bot.Builder.TestBot/wwwroot/default.htm b/tests/Microsoft.Bot.Builder.TestBot/wwwroot/default.htm index 4cbc2a4d8e..1af048a674 100644 --- a/tests/Microsoft.Bot.Builder.TestBot/wwwroot/default.htm +++ b/tests/Microsoft.Bot.Builder.TestBot/wwwroot/default.htm @@ -5,7 +5,7 @@ -

TestBot using ASP.Net 6

+

TestBot using ASP.Net 8

Describe your bot here and your terms of use etc.

To debug your bot using the Bot Framework Emulator, paste this URL into the Emulator window:

diff --git a/tests/Skills/Bot1/Bot1.csproj b/tests/Skills/Bot1/Bot1.csproj index cc991ca8c6..bba858f667 100644 --- a/tests/Skills/Bot1/Bot1.csproj +++ b/tests/Skills/Bot1/Bot1.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 diff --git a/tests/Skills/Bot2/Bot2.csproj b/tests/Skills/Bot2/Bot2.csproj index cc991ca8c6..bba858f667 100644 --- a/tests/Skills/Bot2/Bot2.csproj +++ b/tests/Skills/Bot2/Bot2.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 diff --git a/tests/Skills/Bot3/Bot3.csproj b/tests/Skills/Bot3/Bot3.csproj index cc991ca8c6..bba858f667 100644 --- a/tests/Skills/Bot3/Bot3.csproj +++ b/tests/Skills/Bot3/Bot3.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 diff --git a/tests/Skills/Child/Child.csproj b/tests/Skills/Child/Child.csproj index eb2e541aaa..f63898625b 100644 --- a/tests/Skills/Child/Child.csproj +++ b/tests/Skills/Child/Child.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 f277272c-9113-411f-addd-a4acfa9701a2 Microsoft.BotBuilderSamples diff --git a/tests/Skills/Parent/Parent.csproj b/tests/Skills/Parent/Parent.csproj index bd1afcb60f..3d6ffcc312 100644 --- a/tests/Skills/Parent/Parent.csproj +++ b/tests/Skills/Parent/Parent.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 f277272c-9113-411f-addd-a4acfa9701a2 Microsoft.BotBuilderSamples From ebbbf5d0433e58343d26acdeef3f2ca3c7cf5b8d Mon Sep 17 00:00:00 2001 From: CeciliaAvila Date: Mon, 4 Mar 2024 17:24:35 -0300 Subject: [PATCH 3/8] Update CI yamls to .NET8 --- build/onebranch/ci-api-validation-steps.yml | 2 +- build/onebranch/ci-test-steps.yml | 18 +++++++++--------- build/onebranch/pr.yml | 16 ++++++++-------- build/yaml/botbuilder-dotnet-ci-mac.yml | 4 ++-- build/yaml/botbuilder-dotnet-ci.yml | 16 ++++++++-------- build/yaml/ci-api-validation-steps.yml | 2 +- build/yaml/ci-test-steps.yml | 18 +++++++++--------- 7 files changed, 38 insertions(+), 38 deletions(-) diff --git a/build/onebranch/ci-api-validation-steps.yml b/build/onebranch/ci-api-validation-steps.yml index dfb8d1cbf1..126713d063 100644 --- a/build/onebranch/ci-api-validation-steps.yml +++ b/build/onebranch/ci-api-validation-steps.yml @@ -2,7 +2,7 @@ steps: - task: DownloadPipelineArtifact@2 displayName: 'Download BotBuilderDLLs from Artifacts' inputs: - artifactName: 'BotBuilderDLLs-Debug-Windows-netcoreapp31' + artifactName: 'BotBuilderDLLs-Debug-Windows-net8' targetPath: '$(System.ArtifactsDirectory)/OutputDlls' - task: DownloadPipelineArtifact@2 diff --git a/build/onebranch/ci-test-steps.yml b/build/onebranch/ci-test-steps.yml index 061a1168a9..aa66b8a7ed 100644 --- a/build/onebranch/ci-test-steps.yml +++ b/build/onebranch/ci-test-steps.yml @@ -20,32 +20,32 @@ steps: customCommand: 'install -g @microsoft/botframework-cli@next' - task: UseDotNet@2 - displayName: "Install .NET Core 3.1.415" + displayName: "Install .NET Core 6.0" continueOnError: true inputs: packageType: "sdk" - version: 3.1.415 - condition: and(succeeded(), eq(variables['BuildConfiguration'],'Release-Windows'), eq(variables['BuildTarget'],'netcoreapp31')) + version: 6.x + condition: and(succeeded(), eq(variables['BuildConfiguration'],'Release-Windows'), eq(variables['BuildTarget'],'net6')) - task: DotNetCoreCLI@2 - displayName: 'dotnet test (release) 3.1' + displayName: 'dotnet test (release) 6.0' inputs: command: test projects: | Tests/**/*Tests.csproj - arguments: '-v n -f netcoreapp3.1 --configuration release --no-build --no-restore --filter "TestCategory!=IgnoreInAutomatedBuild&TestCategory!=FunctionalTests" --collect:"Code Coverage" --settings $(Build.SourcesDirectory)\CodeCoverage.runsettings' - condition: and(succeeded(), eq(variables['BuildConfiguration'],'Release-Windows'), eq(variables['BuildTarget'],'netcoreapp31')) + arguments: '-v n -f net6.0 --configuration release --no-build --no-restore --filter "TestCategory!=IgnoreInAutomatedBuild&TestCategory!=FunctionalTests" --collect:"Code Coverage" --settings $(Build.SourcesDirectory)\CodeCoverage.runsettings' + condition: and(succeeded(), eq(variables['BuildConfiguration'],'Release-Windows'), eq(variables['BuildTarget'],'net6')) - task: DotNetCoreCLI@2 - displayName: 'dotnet test (release) 6.0' + displayName: 'dotnet test (release) 8.0' inputs: command: test projects: | Tests/**/*Tests.csproj - arguments: '-v n -f net6.0 --configuration release --no-build --no-restore --filter "TestCategory!=IgnoreInAutomatedBuild&TestCategory!=FunctionalTests" --collect:"Code Coverage" --settings $(Build.SourcesDirectory)\CodeCoverage.runsettings' - condition: and(succeeded(), eq(variables['BuildConfiguration'],'Release-Windows'), eq(variables['BuildTarget'],'net6')) + arguments: '-v n -f net80 --configuration release --no-build --no-restore --filter "TestCategory!=IgnoreInAutomatedBuild&TestCategory!=FunctionalTests" --collect:"Code Coverage" --settings $(Build.SourcesDirectory)\CodeCoverage.runsettings' + condition: and(succeeded(), eq(variables['BuildConfiguration'],'Release-Windows'), eq(variables['BuildTarget'],'net8')) - powershell: | # This task copies the code coverage file created by dotnet test into a well known location. In all diff --git a/build/onebranch/pr.yml b/build/onebranch/pr.yml index 4c01e03e65..afd69e602c 100644 --- a/build/onebranch/pr.yml +++ b/build/onebranch/pr.yml @@ -42,34 +42,34 @@ variables: stages: - stage: Build jobs: - - job: Debug_Windows_Configuration_31 + - job: Debug_Windows_Configuration_6 variables: BuildConfiguration: Debug-Windows - BuildTarget: 'netcoreapp31' # set the TargetFramework property for tests to use netcoreapp3.1 + BuildTarget: 'net6' # set the TargetFramework property for tests to use net6.0 steps: - template: ci-build-steps.yml - template: ci-test-steps.yml - template: ci-component-detection-steps.yml - - job: Debug_Windows_Configuration_6 + - job: Debug_Windows_Configuration_8 variables: BuildConfiguration: Debug-Windows - BuildTarget: 'net6' # set the TargetFramework property for tests to use net6.0 + BuildTarget: 'net8' # set the TargetFramework property for tests to use net8.0 steps: - template: ci-build-steps.yml - template: ci-test-steps.yml - template: ci-component-detection-steps.yml - - job: Release_Windows_Configuration_31 + - job: Release_Windows_Configuration_6 variables: BuildConfiguration: Release-Windows - BuildTarget: 'netcoreapp31' # set the TargetFramework property for tests to use netcoreapp3.1 + BuildTarget: 'net6' # set the TargetFramework property for tests to use net6.0 steps: - template: ci-build-steps.yml - template: ci-test-steps.yml - template: ci-component-detection-steps.yml - - job: Release_Windows_Configuration_6 + - job: Release_Windows_Configuration_8 variables: BuildConfiguration: Release-Windows - BuildTarget: 'net6' # set the TargetFramework property for tests to use net6.0 + BuildTarget: 'net8' # set the TargetFramework property for tests to use net8.0 PublishCoverage: true steps: - template: ci-build-steps.yml diff --git a/build/yaml/botbuilder-dotnet-ci-mac.yml b/build/yaml/botbuilder-dotnet-ci-mac.yml index 857640cbb1..47333e3d89 100644 --- a/build/yaml/botbuilder-dotnet-ci-mac.yml +++ b/build/yaml/botbuilder-dotnet-ci-mac.yml @@ -24,9 +24,9 @@ steps: version: 6.0.x - task: UseDotNet@2 - displayName: 'Use .Net Core sdk 3.1.101' + displayName: 'Use .Net sdk 8.0' inputs: - version: 3.1.101 + version: 8.0.x - powershell: 'gci env:* | sort-object name | Format-Table -AutoSize -Wrap' displayName: 'Display env vars' diff --git a/build/yaml/botbuilder-dotnet-ci.yml b/build/yaml/botbuilder-dotnet-ci.yml index bd6da345da..001d4dd577 100644 --- a/build/yaml/botbuilder-dotnet-ci.yml +++ b/build/yaml/botbuilder-dotnet-ci.yml @@ -42,34 +42,34 @@ variables: stages: - stage: Build jobs: - - job: Debug_Windows_Configuration_31 + - job: Debug_Windows_Configuration_6 variables: BuildConfiguration: Debug-Windows - BuildTarget: 'netcoreapp31' # set the TargetFramework property for tests to use netcoreapp3.1 + BuildTarget: 'net6' # set the TargetFramework property for tests to use net6.0 steps: - template: ci-build-steps.yml - template: ci-test-steps.yml - template: ci-component-detection-steps.yml - - job: Debug_Windows_Configuration_6 + - job: Debug_Windows_Configuration_8 variables: BuildConfiguration: Debug-Windows - BuildTarget: 'net6' # set the TargetFramework property for tests to use net6.0 + BuildTarget: 'net8' # set the TargetFramework property for tests to use net8.0 steps: - template: ci-build-steps.yml - template: ci-test-steps.yml - template: ci-component-detection-steps.yml - - job: Release_Windows_Configuration_31 + - job: Release_Windows_Configuration_6 variables: BuildConfiguration: Release-Windows - BuildTarget: 'netcoreapp31' # set the TargetFramework property for tests to use netcoreapp3.1 + BuildTarget: 'net6' # set the TargetFramework property for tests to use net6.0 steps: - template: ci-build-steps.yml - template: ci-test-steps.yml - template: ci-component-detection-steps.yml - - job: Release_Windows_Configuration_6 + - job: Release_Windows_Configuration_8 variables: BuildConfiguration: Release-Windows - BuildTarget: 'net6' # set the TargetFramework property for tests to use net6.0 + BuildTarget: 'net8' # set the TargetFramework property for tests to use net8.0 PublishCoverage: true steps: - template: ci-build-steps.yml diff --git a/build/yaml/ci-api-validation-steps.yml b/build/yaml/ci-api-validation-steps.yml index dfb8d1cbf1..126713d063 100644 --- a/build/yaml/ci-api-validation-steps.yml +++ b/build/yaml/ci-api-validation-steps.yml @@ -2,7 +2,7 @@ steps: - task: DownloadPipelineArtifact@2 displayName: 'Download BotBuilderDLLs from Artifacts' inputs: - artifactName: 'BotBuilderDLLs-Debug-Windows-netcoreapp31' + artifactName: 'BotBuilderDLLs-Debug-Windows-net8' targetPath: '$(System.ArtifactsDirectory)/OutputDlls' - task: DownloadPipelineArtifact@2 diff --git a/build/yaml/ci-test-steps.yml b/build/yaml/ci-test-steps.yml index 061a1168a9..3484709eaa 100644 --- a/build/yaml/ci-test-steps.yml +++ b/build/yaml/ci-test-steps.yml @@ -20,32 +20,32 @@ steps: customCommand: 'install -g @microsoft/botframework-cli@next' - task: UseDotNet@2 - displayName: "Install .NET Core 3.1.415" + displayName: "Install .NET Core 6.0" continueOnError: true inputs: packageType: "sdk" - version: 3.1.415 - condition: and(succeeded(), eq(variables['BuildConfiguration'],'Release-Windows'), eq(variables['BuildTarget'],'netcoreapp31')) + version: 6.x + condition: and(succeeded(), eq(variables['BuildConfiguration'],'Release-Windows'), eq(variables['BuildTarget'],'net6')) - task: DotNetCoreCLI@2 - displayName: 'dotnet test (release) 3.1' + displayName: 'dotnet test (release) 6.0' inputs: command: test projects: | Tests/**/*Tests.csproj - arguments: '-v n -f netcoreapp3.1 --configuration release --no-build --no-restore --filter "TestCategory!=IgnoreInAutomatedBuild&TestCategory!=FunctionalTests" --collect:"Code Coverage" --settings $(Build.SourcesDirectory)\CodeCoverage.runsettings' - condition: and(succeeded(), eq(variables['BuildConfiguration'],'Release-Windows'), eq(variables['BuildTarget'],'netcoreapp31')) + arguments: '-v n -f net6.0 --configuration release --no-build --no-restore --filter "TestCategory!=IgnoreInAutomatedBuild&TestCategory!=FunctionalTests" --collect:"Code Coverage" --settings $(Build.SourcesDirectory)\CodeCoverage.runsettings' + condition: and(succeeded(), eq(variables['BuildConfiguration'],'Release-Windows'), eq(variables['BuildTarget'],'net6')) - task: DotNetCoreCLI@2 - displayName: 'dotnet test (release) 6.0' + displayName: 'dotnet test (release) 8.0' inputs: command: test projects: | Tests/**/*Tests.csproj - arguments: '-v n -f net6.0 --configuration release --no-build --no-restore --filter "TestCategory!=IgnoreInAutomatedBuild&TestCategory!=FunctionalTests" --collect:"Code Coverage" --settings $(Build.SourcesDirectory)\CodeCoverage.runsettings' - condition: and(succeeded(), eq(variables['BuildConfiguration'],'Release-Windows'), eq(variables['BuildTarget'],'net6')) + arguments: '-v n -f net8.0 --configuration release --no-build --no-restore --filter "TestCategory!=IgnoreInAutomatedBuild&TestCategory!=FunctionalTests" --collect:"Code Coverage" --settings $(Build.SourcesDirectory)\CodeCoverage.runsettings' + condition: and(succeeded(), eq(variables['BuildConfiguration'],'Release-Windows'), eq(variables['BuildTarget'],'net8')) - powershell: | # This task copies the code coverage file created by dotnet test into a well known location. In all From d30a13ffb6868c8e696814bbffb3e97f8d334c6e Mon Sep 17 00:00:00 2001 From: CeciliaAvila Date: Fri, 8 Mar 2024 12:54:23 -0300 Subject: [PATCH 4/8] Apply feedback --- build/onebranch/ci-test-steps.yml | 2 +- ...crosoft.Bot.Builder.Dialogs.Adaptive.Runtime.csproj | 6 +----- ...Builder.Integration.ApplicationInsights.Core.csproj | 10 +--------- ...icrosoft.Bot.Builder.Integration.AspNet.Core.csproj | 6 +----- 4 files changed, 4 insertions(+), 20 deletions(-) diff --git a/build/onebranch/ci-test-steps.yml b/build/onebranch/ci-test-steps.yml index aa66b8a7ed..3484709eaa 100644 --- a/build/onebranch/ci-test-steps.yml +++ b/build/onebranch/ci-test-steps.yml @@ -44,7 +44,7 @@ steps: projects: | Tests/**/*Tests.csproj - arguments: '-v n -f net80 --configuration release --no-build --no-restore --filter "TestCategory!=IgnoreInAutomatedBuild&TestCategory!=FunctionalTests" --collect:"Code Coverage" --settings $(Build.SourcesDirectory)\CodeCoverage.runsettings' + arguments: '-v n -f net8.0 --configuration release --no-build --no-restore --filter "TestCategory!=IgnoreInAutomatedBuild&TestCategory!=FunctionalTests" --collect:"Code Coverage" --settings $(Build.SourcesDirectory)\CodeCoverage.runsettings' condition: and(succeeded(), eq(variables['BuildConfiguration'],'Release-Windows'), eq(variables['BuildTarget'],'net8')) - powershell: | diff --git a/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.csproj b/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.csproj index 474e068f0a..3a2b11083b 100644 --- a/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.csproj +++ b/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.csproj @@ -22,11 +22,7 @@ true
- - - - - + diff --git a/libraries/integration/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.csproj b/libraries/integration/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.csproj index b7643b28d6..f075b62e79 100644 --- a/libraries/integration/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.csproj +++ b/libraries/integration/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.csproj @@ -20,7 +20,7 @@ true
- + @@ -28,14 +28,6 @@ - - - - - - - - diff --git a/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/Microsoft.Bot.Builder.Integration.AspNet.Core.csproj b/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/Microsoft.Bot.Builder.Integration.AspNet.Core.csproj index 7df01c8d8b..40bd0b2a13 100644 --- a/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/Microsoft.Bot.Builder.Integration.AspNet.Core.csproj +++ b/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/Microsoft.Bot.Builder.Integration.AspNet.Core.csproj @@ -19,14 +19,10 @@ true
- + - - - - From e805fb0d9bba03be6c7b2db94a656bded7460ed0 Mon Sep 17 00:00:00 2001 From: JhontSouth Date: Mon, 22 Apr 2024 14:44:32 -0500 Subject: [PATCH 5/8] keep support for netcoreapp3.1 --- build/onebranch/ci-test-steps.yml | 16 ++++++++++++---- build/onebranch/pr.yml | 16 ++++++++++++++++ build/yaml/botbuilder-dotnet-ci.yml | 16 ++++++++++++++++ build/yaml/ci-test-steps.yml | 16 ++++++++++++---- ...t.Bot.Builder.Dialogs.Adaptive.Runtime.csproj | 4 ++-- .../Microsoft.Bot.Connector.csproj | 1 + ...r.Integration.ApplicationInsights.Core.csproj | 4 ++-- ...ft.Bot.Builder.Integration.AspNet.Core.csproj | 4 ++-- ...ft.Bot.Builder.Adapters.Facebook.Tests.csproj | 3 ++- ...osoft.Bot.Builder.Adapters.Slack.Tests.csproj | 3 ++- ...soft.Bot.Builder.Adapters.Twilio.Tests.csproj | 3 ++- ...osoft.Bot.Builder.Adapters.Webex.Tests.csproj | 3 ++- .../AdaptiveExpressions.Tests.csproj | 3 ++- .../ExpressionParserTests.cs | 4 ++++ .../Microsoft.Bot.Builder.AI.Luis.Tests.csproj | 3 ++- ...icrosoft.Bot.Builder.AI.Luis.TestUtils.csproj | 3 ++- ...soft.Bot.Builder.AI.Orchestrator.Tests.csproj | 3 ++- .../Microsoft.Bot.Builder.AI.QnA.Tests.csproj | 3 ++- .../Microsoft.Bot.Builder.AI.LuisV3.Tests.csproj | 3 ++- ....Bot.Builder.ApplicationInsights.Tests.csproj | 3 ++- .../Microsoft.Bot.Builder.Azure.Tests.csproj | 3 ++- ...Builder.Dialogs.Adaptive.Runtime.Tests.csproj | 3 ++- ...ilder.Dialogs.Adaptive.Templates.Tests.csproj | 3 ++- ...oft.Bot.Builder.Dialogs.Adaptive.Tests.csproj | 3 ++- ...ft.Bot.Builder.Dialogs.Debugging.Tests.csproj | 3 ++- ....Bot.Builder.Dialogs.Declarative.Tests.csproj | 3 ++- .../Microsoft.Bot.Builder.Dialogs.Tests.csproj | 3 ++- ...t.Bot.Builder.LanguageGeneration.Tests.csproj | 3 ++- ...soft.Bot.Builder.TemplateManager.Tests.csproj | 3 ++- .../Microsoft.Bot.Builder.TestBot.Tests.csproj | 3 ++- .../Microsoft.Bot.Builder.Testing.Tests.csproj | 3 ++- .../Microsoft.Bot.Builder.Tests.csproj | 3 ++- ...icrosoft.Bot.Builder.Transcripts.Tests.csproj | 3 ++- .../Microsoft.Bot.Configuration.Tests.csproj | 3 ++- .../Authentication/JwtTokenExtractorTests.cs | 5 ++++- .../Microsoft.Bot.Connector.Tests.csproj | 3 ++- .../Microsoft.Bot.Schema.Tests.csproj | 3 ++- .../Microsoft.Bot.Streaming.Tests.csproj | 3 ++- ...Microsoft.Bot.Builder.Parsers.LU.Tests.csproj | 3 ++- ...oft.Bot.ApplicationInsights.Core.Tests.csproj | 12 ++++++++++-- ....Builder.Integration.AspNet.Core.Tests.csproj | 3 ++- 41 files changed, 141 insertions(+), 47 deletions(-) diff --git a/build/onebranch/ci-test-steps.yml b/build/onebranch/ci-test-steps.yml index 3484709eaa..08eb19e52e 100644 --- a/build/onebranch/ci-test-steps.yml +++ b/build/onebranch/ci-test-steps.yml @@ -19,13 +19,21 @@ steps: verbose: false customCommand: 'install -g @microsoft/botframework-cli@next' -- task: UseDotNet@2 - displayName: "Install .NET Core 6.0" + displayName: "Install .NET Core 3.1.415" continueOnError: true inputs: packageType: "sdk" - version: 6.x - condition: and(succeeded(), eq(variables['BuildConfiguration'],'Release-Windows'), eq(variables['BuildTarget'],'net6')) + version: 3.1.415 + condition: and(succeeded(), eq(variables['BuildConfiguration'],'Release-Windows'), eq(variables['BuildTarget'],'netcoreapp31')) + +- task: DotNetCoreCLI@2 + displayName: 'dotnet test (release) 3.1' + inputs: + command: test + projects: | + Tests/**/*Tests.csproj + arguments: '-v n -f netcoreapp3.1 --configuration release --no-build --no-restore --filter "TestCategory!=IgnoreInAutomatedBuild&TestCategory!=FunctionalTests" --collect:"Code Coverage" --settings $(Build.SourcesDirectory)\CodeCoverage.runsettings' + condition: and(succeeded(), eq(variables['BuildConfiguration'],'Release-Windows'), eq(variables['BuildTarget'],'netcoreapp31')) - task: DotNetCoreCLI@2 displayName: 'dotnet test (release) 6.0' diff --git a/build/onebranch/pr.yml b/build/onebranch/pr.yml index afd69e602c..aaf5cbe04e 100644 --- a/build/onebranch/pr.yml +++ b/build/onebranch/pr.yml @@ -42,6 +42,14 @@ variables: stages: - stage: Build jobs: + - job: Debug_Windows_Configuration_31 + variables: + BuildConfiguration: Debug-Windows + BuildTarget: 'netcoreapp31' # set the TargetFramework property for tests to use netcoreapp3.1 + steps: + - template: ci-build-steps.yml + - template: ci-test-steps.yml + - template: ci-component-detection-steps.yml - job: Debug_Windows_Configuration_6 variables: BuildConfiguration: Debug-Windows @@ -58,6 +66,14 @@ stages: - template: ci-build-steps.yml - template: ci-test-steps.yml - template: ci-component-detection-steps.yml + - job: Release_Windows_Configuration_31 + variables: + BuildConfiguration: Release-Windows + BuildTarget: 'netcoreapp31' # set the TargetFramework property for tests to use netcoreapp3.1 + steps: + - template: ci-build-steps.yml + - template: ci-test-steps.yml + - template: ci-component-detection-steps.yml - job: Release_Windows_Configuration_6 variables: BuildConfiguration: Release-Windows diff --git a/build/yaml/botbuilder-dotnet-ci.yml b/build/yaml/botbuilder-dotnet-ci.yml index 001d4dd577..0eb70a982e 100644 --- a/build/yaml/botbuilder-dotnet-ci.yml +++ b/build/yaml/botbuilder-dotnet-ci.yml @@ -42,6 +42,14 @@ variables: stages: - stage: Build jobs: + - job: Debug_Windows_Configuration_31 + variables: + BuildConfiguration: Debug-Windows + BuildTarget: 'netcoreapp31' # set the TargetFramework property for tests to use netcoreapp3.1 + steps: + - template: ci-build-steps.yml + - template: ci-test-steps.yml + - template: ci-component-detection-steps.yml - job: Debug_Windows_Configuration_6 variables: BuildConfiguration: Debug-Windows @@ -58,6 +66,14 @@ stages: - template: ci-build-steps.yml - template: ci-test-steps.yml - template: ci-component-detection-steps.yml + - job: Release_Windows_Configuration_31 + variables: + BuildConfiguration: Release-Windows + BuildTarget: 'netcoreapp31' # set the TargetFramework property for tests to use netcoreapp3.1 + steps: + - template: ci-build-steps.yml + - template: ci-test-steps.yml + - template: ci-component-detection-steps.yml - job: Release_Windows_Configuration_6 variables: BuildConfiguration: Release-Windows diff --git a/build/yaml/ci-test-steps.yml b/build/yaml/ci-test-steps.yml index 3484709eaa..08eb19e52e 100644 --- a/build/yaml/ci-test-steps.yml +++ b/build/yaml/ci-test-steps.yml @@ -19,13 +19,21 @@ steps: verbose: false customCommand: 'install -g @microsoft/botframework-cli@next' -- task: UseDotNet@2 - displayName: "Install .NET Core 6.0" + displayName: "Install .NET Core 3.1.415" continueOnError: true inputs: packageType: "sdk" - version: 6.x - condition: and(succeeded(), eq(variables['BuildConfiguration'],'Release-Windows'), eq(variables['BuildTarget'],'net6')) + version: 3.1.415 + condition: and(succeeded(), eq(variables['BuildConfiguration'],'Release-Windows'), eq(variables['BuildTarget'],'netcoreapp31')) + +- task: DotNetCoreCLI@2 + displayName: 'dotnet test (release) 3.1' + inputs: + command: test + projects: | + Tests/**/*Tests.csproj + arguments: '-v n -f netcoreapp3.1 --configuration release --no-build --no-restore --filter "TestCategory!=IgnoreInAutomatedBuild&TestCategory!=FunctionalTests" --collect:"Code Coverage" --settings $(Build.SourcesDirectory)\CodeCoverage.runsettings' + condition: and(succeeded(), eq(variables['BuildConfiguration'],'Release-Windows'), eq(variables['BuildTarget'],'netcoreapp31')) - task: DotNetCoreCLI@2 displayName: 'dotnet test (release) 6.0' diff --git a/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.csproj b/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.csproj index 3a2b11083b..36cf6d67f7 100644 --- a/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.csproj +++ b/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.csproj @@ -10,7 +10,7 @@
- netstandard2.0;net6.0;net8.0 + netstandard2.0;netcoreapp3.1;net6.0;net8.0 Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime Library for building Adaptive Runtime bots using the Bot Framework SDK Library for building Adaptive Runtime bots using the Bot Framework SDK @@ -22,7 +22,7 @@ true - + diff --git a/libraries/Microsoft.Bot.Connector/Microsoft.Bot.Connector.csproj b/libraries/Microsoft.Bot.Connector/Microsoft.Bot.Connector.csproj index 74e4ca28a7..a0d6547e1d 100644 --- a/libraries/Microsoft.Bot.Connector/Microsoft.Bot.Connector.csproj +++ b/libraries/Microsoft.Bot.Connector/Microsoft.Bot.Connector.csproj @@ -23,6 +23,7 @@ $(NoWarn);SX1309 + $(NoWarn);NU1901 diff --git a/libraries/integration/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.csproj b/libraries/integration/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.csproj index f075b62e79..03ce5f5303 100644 --- a/libraries/integration/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.csproj +++ b/libraries/integration/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.csproj @@ -9,7 +9,7 @@
- netstandard2.0;net6.0;net8.0 + netstandard2.0;netcoreapp3.1;net6.0;net8.0 Microsoft.Bot.Builder.Integration.ApplicationInsights.Core This library integrates the Microsoft Bot Builder SDK with Application Insights. This library provides integration between the Microsoft Bot Builder SDK and Application Insights. @@ -20,7 +20,7 @@ true - + diff --git a/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/Microsoft.Bot.Builder.Integration.AspNet.Core.csproj b/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/Microsoft.Bot.Builder.Integration.AspNet.Core.csproj index 40bd0b2a13..0fff083872 100644 --- a/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/Microsoft.Bot.Builder.Integration.AspNet.Core.csproj +++ b/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/Microsoft.Bot.Builder.Integration.AspNet.Core.csproj @@ -9,7 +9,7 @@
- netstandard2.0;net6.0;net8.0 + netstandard2.0;netcoreapp3.1;net6.0;net8.0 This library integrates the Microsoft Bot Builder SDK with ASP.NET Core. It offers idiomatic configuration APIs in addition to providing all the plumbing to direct incoming bot messages to a configured bot. This library provides integration between the Microsoft Bot Builder SDK and ASP.NET Core. @@ -19,7 +19,7 @@ true
- + diff --git a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Facebook.Tests/Microsoft.Bot.Builder.Adapters.Facebook.Tests.csproj b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Facebook.Tests/Microsoft.Bot.Builder.Adapters.Facebook.Tests.csproj index 831ff82f2e..8c2ebd653a 100644 --- a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Facebook.Tests/Microsoft.Bot.Builder.Adapters.Facebook.Tests.csproj +++ b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Facebook.Tests/Microsoft.Bot.Builder.Adapters.Facebook.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false diff --git a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Slack.Tests/Microsoft.Bot.Builder.Adapters.Slack.Tests.csproj b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Slack.Tests/Microsoft.Bot.Builder.Adapters.Slack.Tests.csproj index 8ed87c6ece..b0dcf7a926 100644 --- a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Slack.Tests/Microsoft.Bot.Builder.Adapters.Slack.Tests.csproj +++ b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Slack.Tests/Microsoft.Bot.Builder.Adapters.Slack.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false diff --git a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Twilio.Tests/Microsoft.Bot.Builder.Adapters.Twilio.Tests.csproj b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Twilio.Tests/Microsoft.Bot.Builder.Adapters.Twilio.Tests.csproj index eb7b6fa949..7f4be07ac1 100644 --- a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Twilio.Tests/Microsoft.Bot.Builder.Adapters.Twilio.Tests.csproj +++ b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Twilio.Tests/Microsoft.Bot.Builder.Adapters.Twilio.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false diff --git a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Webex.Tests/Microsoft.Bot.Builder.Adapters.Webex.Tests.csproj b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Webex.Tests/Microsoft.Bot.Builder.Adapters.Webex.Tests.csproj index f38fb0c471..9151d5a354 100644 --- a/tests/Adapters/Microsoft.Bot.Builder.Adapters.Webex.Tests/Microsoft.Bot.Builder.Adapters.Webex.Tests.csproj +++ b/tests/Adapters/Microsoft.Bot.Builder.Adapters.Webex.Tests/Microsoft.Bot.Builder.Adapters.Webex.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false diff --git a/tests/AdaptiveExpressions.Tests/AdaptiveExpressions.Tests.csproj b/tests/AdaptiveExpressions.Tests/AdaptiveExpressions.Tests.csproj index 480ce3c3a3..338c6457a8 100644 --- a/tests/AdaptiveExpressions.Tests/AdaptiveExpressions.Tests.csproj +++ b/tests/AdaptiveExpressions.Tests/AdaptiveExpressions.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false diff --git a/tests/AdaptiveExpressions.Tests/ExpressionParserTests.cs b/tests/AdaptiveExpressions.Tests/ExpressionParserTests.cs index 1734d33799..c926219ddb 100644 --- a/tests/AdaptiveExpressions.Tests/ExpressionParserTests.cs +++ b/tests/AdaptiveExpressions.Tests/ExpressionParserTests.cs @@ -1048,7 +1048,11 @@ public class ExpressionParserTests Test("lastIndexOf(newGuid(), '-')", 23), Test("lastIndexOf(hello, '-')", -1), Test("lastIndexOf(nullObj, '-')", -1), +#if NET5_0_OR_GREATER //There's a breaking change in .NET5 for this particular case. See https://docs.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/5.0/lastindexof-improved-handling-of-empty-values#change-description Test("lastIndexOf(hello, nullObj)", 5), +#else + Test("lastIndexOf(hello, nullObj)", 4), +#endif Test("lastIndexOf(json('[\"a\", \"b\", \"a\"]'), 'a')", 2), Test("lastIndexOf(json('[\"a\", \"b\"]'), 'c')", -1), Test("lastIndexOf(createArray('abc', 'def', 'ghi', 'def'), 'def')", 3), diff --git a/tests/Microsoft.Bot.Builder.AI.LUIS.Tests/Microsoft.Bot.Builder.AI.Luis.Tests.csproj b/tests/Microsoft.Bot.Builder.AI.LUIS.Tests/Microsoft.Bot.Builder.AI.Luis.Tests.csproj index e088eda614..9a5baa59f1 100644 --- a/tests/Microsoft.Bot.Builder.AI.LUIS.Tests/Microsoft.Bot.Builder.AI.Luis.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.AI.LUIS.Tests/Microsoft.Bot.Builder.AI.Luis.Tests.csproj @@ -1,8 +1,9 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.AI.Luis.TestUtils/Microsoft.Bot.Builder.AI.Luis.TestUtils.csproj b/tests/Microsoft.Bot.Builder.AI.Luis.TestUtils/Microsoft.Bot.Builder.AI.Luis.TestUtils.csproj index 0463e60def..e2b07372a0 100644 --- a/tests/Microsoft.Bot.Builder.AI.Luis.TestUtils/Microsoft.Bot.Builder.AI.Luis.TestUtils.csproj +++ b/tests/Microsoft.Bot.Builder.AI.Luis.TestUtils/Microsoft.Bot.Builder.AI.Luis.TestUtils.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 Debug;Release diff --git a/tests/Microsoft.Bot.Builder.AI.Orchestrator.Tests/Microsoft.Bot.Builder.AI.Orchestrator.Tests.csproj b/tests/Microsoft.Bot.Builder.AI.Orchestrator.Tests/Microsoft.Bot.Builder.AI.Orchestrator.Tests.csproj index eec69ac979..3f9aa58254 100644 --- a/tests/Microsoft.Bot.Builder.AI.Orchestrator.Tests/Microsoft.Bot.Builder.AI.Orchestrator.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.AI.Orchestrator.Tests/Microsoft.Bot.Builder.AI.Orchestrator.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.AI.QnA.Tests/Microsoft.Bot.Builder.AI.QnA.Tests.csproj b/tests/Microsoft.Bot.Builder.AI.QnA.Tests/Microsoft.Bot.Builder.AI.QnA.Tests.csproj index ce5ae5e353..e1a0f756e3 100644 --- a/tests/Microsoft.Bot.Builder.AI.QnA.Tests/Microsoft.Bot.Builder.AI.QnA.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.AI.QnA.Tests/Microsoft.Bot.Builder.AI.QnA.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.Ai.LUISV3.tests/Microsoft.Bot.Builder.AI.LuisV3.Tests.csproj b/tests/Microsoft.Bot.Builder.Ai.LUISV3.tests/Microsoft.Bot.Builder.AI.LuisV3.Tests.csproj index 75aa1b792b..1e6d1fc355 100644 --- a/tests/Microsoft.Bot.Builder.Ai.LUISV3.tests/Microsoft.Bot.Builder.AI.LuisV3.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Ai.LUISV3.tests/Microsoft.Bot.Builder.AI.LuisV3.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.ApplicationInsights.Tests/Microsoft.Bot.Builder.ApplicationInsights.Tests.csproj b/tests/Microsoft.Bot.Builder.ApplicationInsights.Tests/Microsoft.Bot.Builder.ApplicationInsights.Tests.csproj index cb09814de0..b12ddf7570 100644 --- a/tests/Microsoft.Bot.Builder.ApplicationInsights.Tests/Microsoft.Bot.Builder.ApplicationInsights.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.ApplicationInsights.Tests/Microsoft.Bot.Builder.ApplicationInsights.Tests.csproj @@ -1,8 +1,9 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.Azure.Tests/Microsoft.Bot.Builder.Azure.Tests.csproj b/tests/Microsoft.Bot.Builder.Azure.Tests/Microsoft.Bot.Builder.Azure.Tests.csproj index 6e43022e2d..51d30ec07d 100644 --- a/tests/Microsoft.Bot.Builder.Azure.Tests/Microsoft.Bot.Builder.Azure.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Azure.Tests/Microsoft.Bot.Builder.Azure.Tests.csproj @@ -1,8 +1,9 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.Tests.csproj b/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.Tests.csproj index c927f317f1..d5f23586d3 100644 --- a/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Templates.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Templates.Tests.csproj b/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Templates.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Templates.Tests.csproj index 478481337b..77bd58276c 100644 --- a/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Templates.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Templates.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Templates.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Templates.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false diff --git a/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests.csproj b/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests.csproj index 5dc4379fb7..6708860208 100644 --- a/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests/Microsoft.Bot.Builder.Dialogs.Adaptive.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.Dialogs.Debugging.Tests/Microsoft.Bot.Builder.Dialogs.Debugging.Tests.csproj b/tests/Microsoft.Bot.Builder.Dialogs.Debugging.Tests/Microsoft.Bot.Builder.Dialogs.Debugging.Tests.csproj index 6efb8f8fcc..c2c99db2c3 100644 --- a/tests/Microsoft.Bot.Builder.Dialogs.Debugging.Tests/Microsoft.Bot.Builder.Dialogs.Debugging.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Dialogs.Debugging.Tests/Microsoft.Bot.Builder.Dialogs.Debugging.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false diff --git a/tests/Microsoft.Bot.Builder.Dialogs.Declarative.Tests/Microsoft.Bot.Builder.Dialogs.Declarative.Tests.csproj b/tests/Microsoft.Bot.Builder.Dialogs.Declarative.Tests/Microsoft.Bot.Builder.Dialogs.Declarative.Tests.csproj index afaeb1cdac..387b561e49 100644 --- a/tests/Microsoft.Bot.Builder.Dialogs.Declarative.Tests/Microsoft.Bot.Builder.Dialogs.Declarative.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Dialogs.Declarative.Tests/Microsoft.Bot.Builder.Dialogs.Declarative.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false diff --git a/tests/Microsoft.Bot.Builder.Dialogs.Tests/Microsoft.Bot.Builder.Dialogs.Tests.csproj b/tests/Microsoft.Bot.Builder.Dialogs.Tests/Microsoft.Bot.Builder.Dialogs.Tests.csproj index 23510df1db..d04b6e4625 100644 --- a/tests/Microsoft.Bot.Builder.Dialogs.Tests/Microsoft.Bot.Builder.Dialogs.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Dialogs.Tests/Microsoft.Bot.Builder.Dialogs.Tests.csproj @@ -1,8 +1,9 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.LanguageGeneration.Tests/Microsoft.Bot.Builder.LanguageGeneration.Tests.csproj b/tests/Microsoft.Bot.Builder.LanguageGeneration.Tests/Microsoft.Bot.Builder.LanguageGeneration.Tests.csproj index a686b99992..46e3562744 100644 --- a/tests/Microsoft.Bot.Builder.LanguageGeneration.Tests/Microsoft.Bot.Builder.LanguageGeneration.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.LanguageGeneration.Tests/Microsoft.Bot.Builder.LanguageGeneration.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false diff --git a/tests/Microsoft.Bot.Builder.TemplateManager/Microsoft.Bot.Builder.TemplateManager.Tests.csproj b/tests/Microsoft.Bot.Builder.TemplateManager/Microsoft.Bot.Builder.TemplateManager.Tests.csproj index 5063adef50..269043b057 100644 --- a/tests/Microsoft.Bot.Builder.TemplateManager/Microsoft.Bot.Builder.TemplateManager.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.TemplateManager/Microsoft.Bot.Builder.TemplateManager.Tests.csproj @@ -1,8 +1,9 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.TestBot.Tests/Microsoft.Bot.Builder.TestBot.Tests.csproj b/tests/Microsoft.Bot.Builder.TestBot.Tests/Microsoft.Bot.Builder.TestBot.Tests.csproj index 53ab3cd1f7..07ea442df9 100644 --- a/tests/Microsoft.Bot.Builder.TestBot.Tests/Microsoft.Bot.Builder.TestBot.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.TestBot.Tests/Microsoft.Bot.Builder.TestBot.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false Microsoft.Bot.Builder.TestBot.Tests Microsoft.BotBuilderSamples.Tests diff --git a/tests/Microsoft.Bot.Builder.Testing.Tests/Microsoft.Bot.Builder.Testing.Tests.csproj b/tests/Microsoft.Bot.Builder.Testing.Tests/Microsoft.Bot.Builder.Testing.Tests.csproj index 040fac29a7..92d023c8e2 100644 --- a/tests/Microsoft.Bot.Builder.Testing.Tests/Microsoft.Bot.Builder.Testing.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Testing.Tests/Microsoft.Bot.Builder.Testing.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.Tests/Microsoft.Bot.Builder.Tests.csproj b/tests/Microsoft.Bot.Builder.Tests/Microsoft.Bot.Builder.Tests.csproj index 269dc933d4..9ba28908d5 100644 --- a/tests/Microsoft.Bot.Builder.Tests/Microsoft.Bot.Builder.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Tests/Microsoft.Bot.Builder.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Builder.Transcripts.Tests/Microsoft.Bot.Builder.Transcripts.Tests.csproj b/tests/Microsoft.Bot.Builder.Transcripts.Tests/Microsoft.Bot.Builder.Transcripts.Tests.csproj index cafdff2b57..582385763b 100644 --- a/tests/Microsoft.Bot.Builder.Transcripts.Tests/Microsoft.Bot.Builder.Transcripts.Tests.csproj +++ b/tests/Microsoft.Bot.Builder.Transcripts.Tests/Microsoft.Bot.Builder.Transcripts.Tests.csproj @@ -1,8 +1,9 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Configuration.Tests/Microsoft.Bot.Configuration.Tests.csproj b/tests/Microsoft.Bot.Configuration.Tests/Microsoft.Bot.Configuration.Tests.csproj index b7450af6a5..88213ba61b 100644 --- a/tests/Microsoft.Bot.Configuration.Tests/Microsoft.Bot.Configuration.Tests.csproj +++ b/tests/Microsoft.Bot.Configuration.Tests/Microsoft.Bot.Configuration.Tests.csproj @@ -1,8 +1,9 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Connector.Tests/Authentication/JwtTokenExtractorTests.cs b/tests/Microsoft.Bot.Connector.Tests/Authentication/JwtTokenExtractorTests.cs index 11863aaa5e..9545fb1f72 100644 --- a/tests/Microsoft.Bot.Connector.Tests/Authentication/JwtTokenExtractorTests.cs +++ b/tests/Microsoft.Bot.Connector.Tests/Authentication/JwtTokenExtractorTests.cs @@ -11,7 +11,6 @@ using System.Security.Claims; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; -using System.Text; using System.Threading.Tasks; using Microsoft.Bot.Connector.Authentication; using Microsoft.Bot.Schema; @@ -158,7 +157,9 @@ private static TokenValidationParameters CreateTokenValidationParameters(X509Cer }; } +#if NET5_0_OR_GREATER [SupportedOSPlatform("windows")] +#endif private static X509Certificate2 CreateSelfSignedCertificate(string cn, DateTimeOffset from, DateTimeOffset to) { var parameters = new CspParameters(24, "Microsoft Enhanced RSA and AES Cryptographic Provider") @@ -184,7 +185,9 @@ private static X509Certificate2 CreateSelfSignedCertificate(string cn, DateTimeO return cert; } +#if NET5_0_OR_GREATER [SupportedOSPlatform("windows")] +#endif private static void DeleteKeyContainer(string cn) { // %APPDATA%\Microsoft\Crypto\RSA diff --git a/tests/Microsoft.Bot.Connector.Tests/Microsoft.Bot.Connector.Tests.csproj b/tests/Microsoft.Bot.Connector.Tests/Microsoft.Bot.Connector.Tests.csproj index 4470b7d813..25b1e57f9f 100644 --- a/tests/Microsoft.Bot.Connector.Tests/Microsoft.Bot.Connector.Tests.csproj +++ b/tests/Microsoft.Bot.Connector.Tests/Microsoft.Bot.Connector.Tests.csproj @@ -1,8 +1,9 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Schema.Tests/Microsoft.Bot.Schema.Tests.csproj b/tests/Microsoft.Bot.Schema.Tests/Microsoft.Bot.Schema.Tests.csproj index 9e75a9c0fe..97dcab2c0a 100644 --- a/tests/Microsoft.Bot.Schema.Tests/Microsoft.Bot.Schema.Tests.csproj +++ b/tests/Microsoft.Bot.Schema.Tests/Microsoft.Bot.Schema.Tests.csproj @@ -1,8 +1,9 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false false Debug;Release diff --git a/tests/Microsoft.Bot.Streaming.Tests/Microsoft.Bot.Streaming.Tests.csproj b/tests/Microsoft.Bot.Streaming.Tests/Microsoft.Bot.Streaming.Tests.csproj index 6f98c09374..8c087f3a31 100644 --- a/tests/Microsoft.Bot.Streaming.Tests/Microsoft.Bot.Streaming.Tests.csproj +++ b/tests/Microsoft.Bot.Streaming.Tests/Microsoft.Bot.Streaming.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false diff --git a/tests/Parsers/Microsoft.Bot.Builder.Parsers.LU.Tests/Microsoft.Bot.Builder.Parsers.LU.Tests.csproj b/tests/Parsers/Microsoft.Bot.Builder.Parsers.LU.Tests/Microsoft.Bot.Builder.Parsers.LU.Tests.csproj index d513938ef2..a59db9e867 100644 --- a/tests/Parsers/Microsoft.Bot.Builder.Parsers.LU.Tests/Microsoft.Bot.Builder.Parsers.LU.Tests.csproj +++ b/tests/Parsers/Microsoft.Bot.Builder.Parsers.LU.Tests/Microsoft.Bot.Builder.Parsers.LU.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false false Debug;Release diff --git a/tests/integration/Microsoft.Bot.ApplicationInsights.Core.Tests/Microsoft.Bot.ApplicationInsights.Core.Tests.csproj b/tests/integration/Microsoft.Bot.ApplicationInsights.Core.Tests/Microsoft.Bot.ApplicationInsights.Core.Tests.csproj index 0ea94da37d..f2439b6f25 100644 --- a/tests/integration/Microsoft.Bot.ApplicationInsights.Core.Tests/Microsoft.Bot.ApplicationInsights.Core.Tests.csproj +++ b/tests/integration/Microsoft.Bot.ApplicationInsights.Core.Tests/Microsoft.Bot.ApplicationInsights.Core.Tests.csproj @@ -1,17 +1,25 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false false Debug;Release + + + + + + + + - diff --git a/tests/integration/Microsoft.Bot.Builder.Integration.AspNet.Core.Tests/Microsoft.Bot.Builder.Integration.AspNet.Core.Tests.csproj b/tests/integration/Microsoft.Bot.Builder.Integration.AspNet.Core.Tests/Microsoft.Bot.Builder.Integration.AspNet.Core.Tests.csproj index 7620ff56c7..261540811b 100644 --- a/tests/integration/Microsoft.Bot.Builder.Integration.AspNet.Core.Tests/Microsoft.Bot.Builder.Integration.AspNet.Core.Tests.csproj +++ b/tests/integration/Microsoft.Bot.Builder.Integration.AspNet.Core.Tests/Microsoft.Bot.Builder.Integration.AspNet.Core.Tests.csproj @@ -1,9 +1,10 @@  + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false false Debug;Release From 3c1743cd567992515e70452705e722d500000115 Mon Sep 17 00:00:00 2001 From: JhontSouth Date: Mon, 22 Apr 2024 14:47:51 -0500 Subject: [PATCH 6/8] fix pipeline task name --- build/yaml/ci-test-steps.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/build/yaml/ci-test-steps.yml b/build/yaml/ci-test-steps.yml index 08eb19e52e..e07b325b40 100644 --- a/build/yaml/ci-test-steps.yml +++ b/build/yaml/ci-test-steps.yml @@ -19,6 +19,7 @@ steps: verbose: false customCommand: 'install -g @microsoft/botframework-cli@next' +- task: UseDotNet@2 displayName: "Install .NET Core 3.1.415" continueOnError: true inputs: From 902943bd6347cd5adf6c012895eaf4129f766fbd Mon Sep 17 00:00:00 2001 From: JhontSouth Date: Tue, 14 May 2024 14:30:54 -0500 Subject: [PATCH 7/8] separate target framework conditionals --- ...ot.Builder.Dialogs.Adaptive.Runtime.csproj | 11 ++++++++++- ...ntegration.ApplicationInsights.Core.csproj | 19 ++++++++++++++++++- ...Bot.Builder.Integration.AspNet.Core.csproj | 11 ++++++++++- ...osoft.Bot.Connector.Streaming.Tests.csproj | 5 +++-- ....Bot.ApplicationInsights.Core.Tests.csproj | 7 ++++++- 5 files changed, 47 insertions(+), 6 deletions(-) diff --git a/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.csproj b/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.csproj index 36cf6d67f7..831b5ba5ef 100644 --- a/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.csproj +++ b/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime/Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime.csproj @@ -22,7 +22,16 @@ true - + + + + + + + + + + diff --git a/libraries/integration/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.csproj b/libraries/integration/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.csproj index 03ce5f5303..5549e02213 100644 --- a/libraries/integration/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.csproj +++ b/libraries/integration/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.csproj @@ -20,7 +20,24 @@ true - + + + + + + + + + + + + + + + + + + diff --git a/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/Microsoft.Bot.Builder.Integration.AspNet.Core.csproj b/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/Microsoft.Bot.Builder.Integration.AspNet.Core.csproj index 0fff083872..58c39f2ae2 100644 --- a/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/Microsoft.Bot.Builder.Integration.AspNet.Core.csproj +++ b/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/Microsoft.Bot.Builder.Integration.AspNet.Core.csproj @@ -19,7 +19,16 @@ true - + + + + + + + + + + diff --git a/tests/Microsoft.Bot.Connector.Streaming.Tests/Microsoft.Bot.Connector.Streaming.Tests.csproj b/tests/Microsoft.Bot.Connector.Streaming.Tests/Microsoft.Bot.Connector.Streaming.Tests.csproj index 97dc0a9764..0081c4f739 100644 --- a/tests/Microsoft.Bot.Connector.Streaming.Tests/Microsoft.Bot.Connector.Streaming.Tests.csproj +++ b/tests/Microsoft.Bot.Connector.Streaming.Tests/Microsoft.Bot.Connector.Streaming.Tests.csproj @@ -1,9 +1,10 @@ - + + netcoreapp3.1 net6.0 net8.0 - net6.0;net8.0 + netcoreapp3.1;net6.0;net8.0 false false Debug;Release diff --git a/tests/integration/Microsoft.Bot.ApplicationInsights.Core.Tests/Microsoft.Bot.ApplicationInsights.Core.Tests.csproj b/tests/integration/Microsoft.Bot.ApplicationInsights.Core.Tests/Microsoft.Bot.ApplicationInsights.Core.Tests.csproj index f2439b6f25..d214e26255 100644 --- a/tests/integration/Microsoft.Bot.ApplicationInsights.Core.Tests/Microsoft.Bot.ApplicationInsights.Core.Tests.csproj +++ b/tests/integration/Microsoft.Bot.ApplicationInsights.Core.Tests/Microsoft.Bot.ApplicationInsights.Core.Tests.csproj @@ -10,11 +10,16 @@ Debug;Release + - + + + + + From d5dc1ce40dcf8d0733d31c7bfa6293af349ad3fd Mon Sep 17 00:00:00 2001 From: JhontSouth Date: Wed, 15 May 2024 12:45:23 -0500 Subject: [PATCH 8/8] add missing task to pipeline --- build/onebranch/ci-test-steps.yml | 1 + libraries/Microsoft.Bot.Connector/Microsoft.Bot.Connector.csproj | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/build/onebranch/ci-test-steps.yml b/build/onebranch/ci-test-steps.yml index 08eb19e52e..e07b325b40 100644 --- a/build/onebranch/ci-test-steps.yml +++ b/build/onebranch/ci-test-steps.yml @@ -19,6 +19,7 @@ steps: verbose: false customCommand: 'install -g @microsoft/botframework-cli@next' +- task: UseDotNet@2 displayName: "Install .NET Core 3.1.415" continueOnError: true inputs: diff --git a/libraries/Microsoft.Bot.Connector/Microsoft.Bot.Connector.csproj b/libraries/Microsoft.Bot.Connector/Microsoft.Bot.Connector.csproj index a0d6547e1d..74e4ca28a7 100644 --- a/libraries/Microsoft.Bot.Connector/Microsoft.Bot.Connector.csproj +++ b/libraries/Microsoft.Bot.Connector/Microsoft.Bot.Connector.csproj @@ -23,7 +23,6 @@ $(NoWarn);SX1309 - $(NoWarn);NU1901