Skip to content

Commit b87ed68

Browse files
authored
Merge branch 'main' into copilot/update-samples-to-minimal-apis
2 parents 245e65a + b6c6654 commit b87ed68

File tree

43 files changed

+424
-134
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+424
-134
lines changed

.azdo/cd-core.yaml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
pr:
2+
branches:
3+
include:
4+
- next/*
5+
# Uncomment and edit the following lines to add path filters for PRs in the future
6+
# paths:
7+
# include:
8+
# - core/**
9+
10+
trigger:
11+
branches:
12+
include:
13+
- next/*
14+
paths:
15+
include:
16+
- core/**
17+
18+
pool:
19+
vmImage: 'ubuntu-22.04'
20+
21+
stages:
22+
- stage: Build_Test_Pack
23+
jobs:
24+
- job: BuildTestPack
25+
displayName: 'Build, Test, and Pack'
26+
steps:
27+
28+
- task: UseDotNet@2
29+
displayName: 'Use .NET 8 SDK'
30+
inputs:
31+
packageType: 'sdk'
32+
version: '8.0.x'
33+
34+
- task: UseDotNet@2
35+
displayName: 'Use .NET 10 SDK'
36+
inputs:
37+
packageType: 'sdk'
38+
version: '10.0.x'
39+
40+
- script: dotnet restore
41+
displayName: 'Restore'
42+
workingDirectory: '$(Build.SourcesDirectory)/core'
43+
44+
- script: dotnet build --no-restore --configuration Release
45+
displayName: 'Build'
46+
workingDirectory: '$(Build.SourcesDirectory)/core'
47+
48+
- script: dotnet test --no-build --configuration Release
49+
displayName: 'Test'
50+
workingDirectory: '$(Build.SourcesDirectory)/core'
51+
52+
- script: dotnet pack --no-build -o $(Build.ArtifactStagingDirectory) /p:SymbolPackageFormat=snupkg --configuration Release
53+
displayName: 'Pack'
54+
workingDirectory: '$(Build.SourcesDirectory)/core'
55+
56+
- task: NuGetCommand@2
57+
displayName: 'Push NuGet Packages'
58+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/next/core'))
59+
inputs:
60+
command: push
61+
packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
62+
nuGetFeedType: internal
63+
publishVstsFeed: '$(System.TeamProject)/TeamsSDKPreviews'
64+
65+
- task: PublishPipelineArtifact@1
66+
displayName: 'Publish NuGet Packages as Pipeline Artifact'
67+
inputs:
68+
targetPath: '$(Build.ArtifactStagingDirectory)'
69+
artifact: 'nuget-packages'
70+
publishLocation: 'pipeline'

.azdo/ci.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
pr:
2-
- main
3-
- release/*
2+
branches:
3+
include:
4+
- main
5+
- release/*
6+
paths:
7+
exclude:
8+
- core/**
9+
410

511
pool:
612
vmImage: 'ubuntu-22.04'

.github/ado-publish.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ stages:
134134
- stage: PushToNuGet
135135
displayName: 'Push NuGet Packages to nuget.org'
136136
dependsOn: Build_Test_Sign_Pack
137-
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
138137
jobs:
139138
- deployment: PushPackages
140139
displayName: 'Manual Approval Required to Push Packages'

.github/workflows/build-test-lint.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,18 @@ on:
55
workflow_dispatch:
66
pull_request:
77
branches: ['main']
8+
paths-ignore:
9+
- '**/*.md'
10+
- 'docs/**'
11+
- 'Assets/**'
12+
- 'core/**'
813
push:
914
branches: ['main']
10-
15+
paths-ignore:
16+
- '**/*.md'
17+
- 'docs/**'
18+
- 'Assets/**'
19+
- 'core/**'
1120
permissions: read-all
1221

1322
jobs:

Libraries/Microsoft.Teams.AI.Models.OpenAI/Microsoft.Teams.AI.Models.OpenAI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</PropertyGroup>
1111

1212
<PropertyGroup>
13-
<TargetFrameworks>net8.0;net9.0;netstandard2.0;netstandard2.1</TargetFrameworks>
13+
<TargetFramework>net8.0</TargetFramework>
1414
<ImplicitUsings>enable</ImplicitUsings>
1515
<Nullable>enable</Nullable>
1616
<LangVersion>latest</LangVersion>

Libraries/Microsoft.Teams.AI/Microsoft.Teams.AI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</PropertyGroup>
1111

1212
<PropertyGroup>
13-
<TargetFrameworks>net8.0;net9.0;netstandard2.0;netstandard2.1</TargetFrameworks>
13+
<TargetFramework>net8.0</TargetFramework>
1414
<ImplicitUsings>enable</ImplicitUsings>
1515
<Nullable>enable</Nullable>
1616
<LangVersion>latest</LangVersion>

Libraries/Microsoft.Teams.Api/Clients/ActivityClient.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public ActivityClient(string serviceUrl, IHttpClientFactory factory, Cancellatio
4141
}
4242

4343
var req = HttpRequest.Post(url, body: activity);
44-
44+
4545
var res = await _http.SendAsync(req, _cancellationToken);
4646

4747
if (res.Body == string.Empty) return null;
@@ -57,7 +57,7 @@ public ActivityClient(string serviceUrl, IHttpClientFactory factory, Cancellatio
5757
{
5858
url += "?isTargetedActivity=true";
5959
}
60-
60+
6161
var req = HttpRequest.Put(url, body: activity);
6262

6363
var res = await _http.SendAsync(req, _cancellationToken);
@@ -71,13 +71,13 @@ public ActivityClient(string serviceUrl, IHttpClientFactory factory, Cancellatio
7171
public async Task<Resource?> ReplyAsync(string conversationId, string id, IActivity activity, bool isTargeted = false)
7272
{
7373
activity.ReplyToId = id;
74-
74+
7575
var url = $"{ServiceUrl}v3/conversations/{conversationId}/activities/{id}";
7676
if (isTargeted)
7777
{
7878
url += "?isTargetedActivity=true";
7979
}
80-
80+
8181
var req = HttpRequest.Post(url, body: activity);
8282

8383
var res = await _http.SendAsync(req, _cancellationToken);

Libraries/Microsoft.Teams.Api/Entities/ProductInfoEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ public class ProductInfoEntity : Entity
1212
public string? Id { get; set; }
1313

1414
public ProductInfoEntity() : base("ProductInfo") { }
15-
}
15+
}

Libraries/Microsoft.Teams.Api/Microsoft.Teams.Api.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</PropertyGroup>
1111

1212
<PropertyGroup>
13-
<TargetFrameworks>net8.0;net9.0;netstandard2.0;netstandard2.1</TargetFrameworks>
13+
<TargetFrameworks>net8.0</TargetFrameworks>
1414
<ImplicitUsings>enable</ImplicitUsings>
1515
<Nullable>enable</Nullable>
1616
<LangVersion>latest</LangVersion>

Libraries/Microsoft.Teams.Apps.Testing/Microsoft.Teams.Apps.Testing.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</PropertyGroup>
1111

1212
<PropertyGroup>
13-
<TargetFrameworks>net8.0;net9.0;netstandard2.0;netstandard2.1</TargetFrameworks>
13+
<TargetFramework>net8.0</TargetFramework>
1414
<ImplicitUsings>enable</ImplicitUsings>
1515
<Nullable>enable</Nullable>
1616
<LangVersion>latest</LangVersion>

0 commit comments

Comments
 (0)