Skip to content

Commit

Permalink
Merge branch 'main' into releases/4.22
Browse files Browse the repository at this point in the history
# Conflicts:
#	libraries/Microsoft.Bot.Connector/Microsoft.Bot.Connector.csproj
  • Loading branch information
Tracy Boehrer committed May 29, 2024
2 parents 947714b + 411e092 commit 4437ef8
Show file tree
Hide file tree
Showing 137 changed files with 858 additions and 296 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
<Configurations>Debug;Release;</Configurations>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion build/onebranch/ci-api-validation-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 10 additions & 1 deletion build/onebranch/ci-test-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ steps:
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'))

Expand All @@ -47,6 +46,16 @@ steps:
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) 8.0'
inputs:
command: test
projects: |
Tests/**/*Tests.csproj
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
# checks I've done, dotnet test ALWAYS outputs the coverage file to the temp directory.
Expand Down
16 changes: 16 additions & 0 deletions build/onebranch/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ stages:
- template: ci-build-steps.yml
- template: ci-test-steps.yml
- template: ci-component-detection-steps.yml
- job: Debug_Windows_Configuration_8
variables:
BuildConfiguration: Debug-Windows
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
variables:
BuildConfiguration: Release-Windows
Expand All @@ -70,6 +78,14 @@ stages:
variables:
BuildConfiguration: Release-Windows
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_8
variables:
BuildConfiguration: Release-Windows
BuildTarget: 'net8' # set the TargetFramework property for tests to use net8.0
PublishCoverage: true
steps:
- template: ci-build-steps.yml
Expand Down
6 changes: 3 additions & 3 deletions build/yaml/botbuilder-dotnet-ci-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ 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'

- task: NuGetToolInstaller@1
displayName: 'Use NuGet '

- task: NuGetAuthenticate@0
- task: NuGetAuthenticate@1
displayName: 'NuGet Authenticate'
inputs:
nuGetServiceConnections: SDK_Dotnet_V4_org Connection
Expand Down
16 changes: 16 additions & 0 deletions build/yaml/botbuilder-dotnet-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ stages:
- template: ci-build-steps.yml
- template: ci-test-steps.yml
- template: ci-component-detection-steps.yml
- job: Debug_Windows_Configuration_8
variables:
BuildConfiguration: Debug-Windows
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
variables:
BuildConfiguration: Release-Windows
Expand All @@ -70,6 +78,14 @@ stages:
variables:
BuildConfiguration: Release-Windows
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_8
variables:
BuildConfiguration: Release-Windows
BuildTarget: 'net8' # set the TargetFramework property for tests to use net8.0
PublishCoverage: true
steps:
- template: ci-build-steps.yml
Expand Down
4 changes: 2 additions & 2 deletions build/yaml/botbuilder-dotnet-functional-test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ steps:
command: publish
publishWebProjects: false
projects: '$(System.DefaultWorkingDirectory)\tests\Microsoft.Bot.Builder.TestBot\Microsoft.Bot.Builder.TestBot.csproj'
arguments: '-r linux-x64 --configuration $(BuildConfiguration) --output $(System.DefaultWorkingDirectory)\tests\Microsoft.Bot.Builder.TestBot\publishedbot -p:TreatWarningsAsErrors=false -p:RestoreUseSkipNonexistentTargets=false'
arguments: '-r linux-x64 --configuration $(BuildConfiguration) --self-contained --output $(System.DefaultWorkingDirectory)\tests\Microsoft.Bot.Builder.TestBot\publishedbot -p:TreatWarningsAsErrors=false -p:RestoreUseSkipNonexistentTargets=false'
zipAfterPublish: false
modifyOutputPath: false

Expand Down Expand Up @@ -136,4 +136,4 @@ steps:
ls -R
displayName: 'Dir workspace'
continueOnError: true
condition: succeededOrFailed()
condition: succeededOrFailed()
2 changes: 1 addition & 1 deletion build/yaml/ci-api-validation-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 10 additions & 1 deletion build/yaml/ci-test-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ steps:
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'))

Expand All @@ -47,6 +46,16 @@ steps:
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) 8.0'
inputs:
command: test
projects: |
Tests/**/*Tests.csproj
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
# checks I've done, dotnet test ALWAYS outputs the coverage file to the temp directory.
Expand Down
2 changes: 1 addition & 1 deletion build/yaml/functional-test-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ steps:
command: publish
publishWebProjects: false
projects: '$(System.DefaultWorkingDirectory)\tests\Microsoft.Bot.Builder.TestBot\Microsoft.Bot.Builder.TestBot.csproj'
arguments: '-r linux-x64 --output $(System.DefaultWorkingDirectory)\tests\Microsoft.Bot.Builder.TestBot\PublishedBot --configuration $(TestConfiguration) --framework net6.0'
arguments: '-r linux-x64 --output $(System.DefaultWorkingDirectory)\tests\Microsoft.Bot.Builder.TestBot\PublishedBot --configuration $(TestConfiguration) --framework net8.0'

- task: CopyFiles@2
displayName: 'Copy root Directory.Build.props to staging'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,21 @@
"description": "The target framework for the project.",
"datatype": "choice",
"choices": [
{
"choice": "netcoreapp3.1",
"description": "Target netcoreapp3.1"
},
{
"choice": "net6.0",
"description": "Target net6.0"
},
{
"choice": "net8.0",
"description": "Target net8.0"
}
],
"replaces": "__NETCOREAPP_VERSION__",
"defaultValue": "net6.0"
"defaultValue": "net8.0"
},
"IncludeTests": {
"type": "parameter",
Expand All @@ -61,16 +69,16 @@
"isRequired": false
},
"ReadmeNetCorePrereqVersion": {
"type":"generated",
"type": "generated",
"generator": "switch",
"dataType": "string",
"replaces": "__NETCORE_VERSION__",
"parameters": {
"evaluator": "C++",
"cases": [
{
"condition": "(Framework==\"net6.0\")",
"value": "6.0"
"condition": "(Framework==\"net8.0\")",
"value": "8.0"
}
]
}
Expand Down Expand Up @@ -109,7 +117,9 @@
"condition": "(!SkipRestore)",
"description": "Restore NuGet packages required by this project.",
"manualInstructions": [
{ "text": "Run 'dotnet restore'" }
{
"text": "Run 'dotnet restore'"
}
],
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
"continueOnError": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Once you created the LUIS model, update `appsettings.json` with your `LuisAppId`

[Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel.

- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases)
- Install the latest v4 Bot Framework Emulator [here](https://github.com/Microsoft/BotFramework-Emulator/releases/latest)

### Connect to the bot using Bot Framework Emulator

Expand All @@ -89,7 +89,7 @@ To learn more about deploying a bot to Azure, see [Deploy your bot to Azure](htt
- [Activity processing](https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-concept-activity-processing?view=azure-bot-service-4.0)
- [Azure Bot Service Introduction](https://docs.microsoft.com/azure/bot-service/bot-service-overview-introduction?view=azure-bot-service-4.0)
- [Azure Bot Service Documentation](https://docs.microsoft.com/azure/bot-service/?view=azure-bot-service-4.0)
- [.NET Core CLI tools](https://docs.microsoft.com/en-us/dotnet/core/tools/?tabs=netcore2x)
- [.NET Core CLI tools](https://docs.microsoft.com/en-us/dotnet/core/tools)
- [Azure CLI](https://docs.microsoft.com/cli/azure/?view=azure-cli-latest)
- [Azure Portal](https://portal.azure.com)
- [Language Understanding using LUIS](https://docs.microsoft.com/en-us/azure/cognitive-services/luis/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,33 @@
"description": "The target framework for the project.",
"datatype": "choice",
"choices": [
{
"choice": "netcoreapp3.1",
"description": "Target netcoreapp3.1"
},
{
"choice": "net6.0",
"description": "Target net6.0"
},
{
"choice": "net8.0",
"description": "Target net8.0"
}
],
"replaces": "__NETCOREAPP_VERSION__",
"defaultValue": "net6.0"
"defaultValue": "net8.0"
},
"ReadmeNetCorePrereqVersion": {
"type":"generated",
"type": "generated",
"generator": "switch",
"dataType": "string",
"replaces": "__NETCORE_VERSION__",
"parameters": {
"evaluator": "C++",
"cases": [
{
"condition": "(Framework==\"net6.0\")",
"value": "6.0"
"condition": "(Framework==\"net8.0\")",
"value": "8.0"
}
]
}
Expand All @@ -78,7 +86,12 @@
"sources": [
{
"modifiers": [
{"exclude": [ "**/NuGet.Config", "**/.DS_Store" ]}
{
"exclude": [
"**/NuGet.Config",
"**/.DS_Store"
]
}
]
}
],
Expand All @@ -87,7 +100,9 @@
"condition": "(!SkipRestore)",
"description": "Restore NuGet packages required by this project.",
"manualInstructions": [
{ "text": "Run 'dotnet restore'" }
{
"text": "Run 'dotnet restore'"
}
],
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
"continueOnError": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i

[Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel.

- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases)
- Install the latest v4 Bot Framework Emulator [here](https://github.com/Microsoft/BotFramework-Emulator/releases/latest)

### Connect to the bot using Bot Framework Emulator

Expand All @@ -62,7 +62,7 @@ To learn more about deploying a bot to Azure, see [Deploy your bot to Azure](htt
- [Activity processing](https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-concept-activity-processing?view=azure-bot-service-4.0)
- [Azure Bot Service Introduction](https://docs.microsoft.com/azure/bot-service/bot-service-overview-introduction?view=azure-bot-service-4.0)
- [Azure Bot Service Documentation](https://docs.microsoft.com/azure/bot-service/?view=azure-bot-service-4.0)
- [.NET Core CLI tools](https://docs.microsoft.com/en-us/dotnet/core/tools/?tabs=netcore2x)
- [.NET Core CLI tools](https://docs.microsoft.com/en-us/dotnet/core/tools)
- [Azure CLI](https://docs.microsoft.com/cli/azure/?view=azure-cli-latest)
- [Azure Portal](https://portal.azure.com)
- [Language Understanding using LUIS](https://docs.microsoft.com/en-us/azure/cognitive-services/luis/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,33 @@
"description": "The target framework for the project.",
"datatype": "choice",
"choices": [
{
"choice": "netcoreapp3.1",
"description": "Target netcoreapp3.1"
},
{
"choice": "net6.0",
"description": "Target net6.0"
},
{
"choice": "net8.0",
"description": "Target net8.0"
}
],
"replaces": "__NETCOREAPP_VERSION__",
"defaultValue": "net6.0"
"defaultValue": "net8.0"
},
"ReadmeNetCorePrereqVersion": {
"type":"generated",
"type": "generated",
"generator": "switch",
"dataType": "string",
"replaces": "__NETCORE_VERSION__",
"parameters": {
"evaluator": "C++",
"cases": [
{
"condition": "(Framework==\"net6.0\")",
"value": "6.0"
"condition": "(Framework==\"net8.0\")",
"value": "8.0"
}
]
}
Expand All @@ -78,7 +86,12 @@
"sources": [
{
"modifiers": [
{"exclude": [ "**/NuGet.Config", "**/.DS_Store" ]}
{
"exclude": [
"**/NuGet.Config",
"**/.DS_Store"
]
}
]
}
],
Expand All @@ -87,7 +100,9 @@
"condition": "(!SkipRestore)",
"description": "Restore NuGet packages required by this project.",
"manualInstructions": [
{ "text": "Run 'dotnet restore'" }
{
"text": "Run 'dotnet restore'"
}
],
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
"continueOnError": true
Expand Down
Loading

0 comments on commit 4437ef8

Please sign in to comment.