本教程指导你如何使用 ASP.NET Core 和 Microsoft Graph API 生成 Microsoft Teams 应用,以检索用户的日历信息。This tutorial teaches you how to build a Microsoft Teams app using ASP.NET Core and the Microsoft Graph API to retrieve calendar information for a user.

提示

如果你更喜欢仅下载已完成的教程,可以下载或克隆 GitHub 存储库If you prefer to just download the completed tutorial, you can download or clone the GitHub repository. 有关使用应用 ID 和密码配置应用的说明,请参阅演示文件夹中的自述文件。See the README file in the demo folder for instructions on configuring the app with an app ID and secret.

先决条件Prerequisites

在开始本教程之前,应在开发计算机上安装以下内容。Before you start this tutorial, you should have the following installed on your development machine.

你还应该拥有具有邮箱的个人 Microsoft 帐户Outlook.com或 Microsoft 工作或学校帐户。You should also have either a personal Microsoft account with a mailbox on Outlook.com, or a Microsoft work or school account. 如果你没有 Microsoft 帐户,有几个选项可以获取免费帐户:If you don't have a Microsoft account, there are a couple of options to get a free account:

备注

本教程是使用 .NET Core SDK 版本 3.1.402 编写的。This tutorial was written with .NET Core SDK version 3.1.402. 本指南中的步骤可能与其他版本一起运行,但尚未经过测试。The steps in this guide may work with other versions, but that has not been tested.

反馈Feedback

请在 GitHub 存储库中提供有关本教程 的任何反馈Please provide any feedback on this tutorial in the GitHub repository.