Skip to content

Update breaking changes doc #523

Open
MehakBindra wants to merge 4 commits into
mainfrom
core/breaking-doc
Open

Update breaking changes doc #523
MehakBindra wants to merge 4 commits into
mainfrom
core/breaking-doc

Conversation

@MehakBindra
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 22, 2026 20:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the breaking-changes reduction plan documentation for core/src/Microsoft.Teams.Apps by reorganizing the inventory into “Pending”, “Doc-only”, “Not migrated”, and “Implemented” sections, and by recording which compatibility gaps are already addressed in the new core library.

Changes:

  • Reorganized the breaking-changes inventory into status-based sections and updated several entries to “IMPLEMENTED” with the corresponding fix notes and file locations.
  • Added/updated sample migration difficulty assessment to reflect remaining blockers only.
  • Clarified several architectural/documentation-only items and consolidated “review later” gaps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread core/docs/ReduceBreakingChangesPlan.md Outdated
Comment thread core/docs/ReduceBreakingChangesPlan.md
Comment thread core/docs/ReduceBreakingChangesPlan.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 22, 2026 21:12
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment on lines +279 to +283
var appBuilder = App.Builder()
.AddLogger(new ConsoleLogger(...))
.AddOAuth("graph");
builder.AddTeams(appBuilder);
```
Comment on lines +293 to 309
**Decision: IMPLEMENTED** — parameterless overload on `WebApplicationBuilder`

### Item 5: Add `App.Builder()` wrapper around ASP.NET DI
- **Impact:** Resolves BC-6, unblocks Graph and Meetings samples
- **Details:** `App.Builder()` returns a builder that wraps standard ASP.NET DI options pattern.
**Old API:**
```csharp
builder.AddTeams(); // on WebApplicationBuilder
builder.AddTeams(appBuilder); // with App.Builder
```

### Item 6: Add `OnMeetingJoin`/`OnMeetingLeave` aliases
- **File:** `core/src/Microsoft.Teams.Apps/Handlers/MeetingExtensions.cs`
- **Impact:** Resolves BC-10
- **Details:** Aliases to `OnMeetingParticipantJoin`/`OnMeetingParticipantLeave`. No `[Obsolete]` for now.
**New API:**
```csharp
builder.Services.AddTeams(); // on IServiceCollection
```

### Item 7: Add proactive `Send()`/`Reply()` on TeamsBotApplication
- **File:** `core/src/Microsoft.Teams.Apps/TeamsBotApplication.cs` or extension
- **Impact:** Resolves BC-8, unblocks Threading sample
**Samples affected:** All

### Item 8: Add `InvokeResponse.Ok()`/`InvokeResponse.Error()` factory methods
- **Impact:** Resolves BC-12
- **File:** Invoke response types in core project
**Fix applied:** Parameterless `AddTeams(this WebApplicationBuilder builder)` extension method added, delegating to `builder.Services.AddTeams()`.


**Infrastructure events (architectural change):**
- `OnActivity`, `OnError`, `OnStart`, `OnActivityResponse`, `OnActivitySent`
Not migrated (low priority): `WithSummary()`, `WithDeliveryMode()`, `Merge()`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants