編輯

共用方式為


Teams Toolkit Visual Studio Overview

Microsoft Teams Toolkit makes it simple to get started with app development for Microsoft Teams using Microsoft Visual Studio.

  • Start with a project template for common custom app built for your org (LOB app) scenarios or from a sample.
  • Save setup time with automated app registration and configuration.
  • Run and debug to Teams directly from familiar tools.
  • Smart defaults for hosting in Microsoft Azure using infrastructure-as-code and Bicep.
  • Bring your app to your organization or the Microsoft Teams Store using built-in publishing tools.

Screenshot shows the User Journey of the Teams Toolkit.

Available for Visual Studio

Teams Toolkit is available for free for Visual Studio 2022 Community, Professional, and Enterprise. For more information about installation and setup, see how to install Teams Toolkit.

Teams Toolkit Visual Studio
Installation Available in the Visual Studio Installer
Build with C#, .NET, ASP.NET, and Blazor

Features

The following are the key features of Teams Toolkit:

Note

CodeLens to trigger Teams Toolkit lifecycle, Teams Toolkit documentation, and Microsoft 365 Copilot agent is available in public developer preview.

Project templates

You can start with the capability-focused templates such as tabs, bots, and message extensions or by following the existing samples if you're already familiar with Teams app development. Teams Toolkit reduces the complexity of getting started with the help of templates for custom app built for org scenarios and smart defaults to accelerate your time to production.

Perform the following the steps to select templates and app capability:

  1. Select File > New > Project.

  2. Enter Teams in the search box and from search results, select Microsoft Teams App template.

  3. Select Next.

    Screenshot shows the search and select Microsoft Teams app.

Automatic registration and configuration

You can save time and let the toolkit automatically register the app in Teams Developer Portal. When you first run or debug the app, Teams Toolkit automatically registers the Teams app to your Microsoft 365 tenant and configures settings such as Microsoft Entra ID for your Teams app. Sign in with your Microsoft 365 account to control where the app is configured and customize the Microsoft Entra manifest.

CodeLens to trigger Teams Toolkit lifecycle

Teams Toolkit provides developers with lifecycle actions and grants access to configuration definitions within the teamsapp.yml file. You can now preview and trigger these predefined lifecycle actions using the CodeLens feature directly within the teamsapp.yml file. This streamlined process enhances the development workflow.

Screenshot shows the lifecycle access and access through CodeLens in teamsapp.yml file.

Teams Toolkit documentation

To view the Teams Toolkit documentation, follow these steps from Teams Toolkit:

  1. Select Project > Teams Toolkit.

  2. Select Teams Toolkit Documentation.

    Screenshot shows the option to select and view the documentation.

A browser window opens to view the documentation.

Microsoft 365 Copilot agent

The latest version of Teams Toolkit incorporates numerous preview features designed to support Microsoft 365 Copilot agent development. To enable and activate the preview feature, follow these steps:

  1. Select Tools > Options....

    Screenshot shows the selection of Options under Tools menu.

    A pop-up window appears.

  2. Enter Copilot, select Preview Features.

  3. Select the Teams Toolkit: Develop Copilot Plugin (requires restart) checkbox.

  4. Select OK.

    Screenshot shows the selection of Copilot agent from preview feature.

Enhance the capabilities of Microsoft 365 Copilot by converting your app into an agent that helps user productivity in daily tasks and workflows. Activate these agents for Microsoft 365 Copilot using the Teams Toolkit. Teams Toolkit Copilot agent supports specific capabilities, such as Custom Search Results and AI Assistant Bot [Preview].

TeamsFx .NET SDK reference

See also

Install Teams Toolkit