简体   繁体   中英

How do i get manifest.json file in C#.net?

我参考了以下链接来创建机器人并将其部署到微软团队https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/create-a-bot-for-teams但是当它需要在 Microsoft 团队中添加 manifest.json 文件,我在 c#.net 中没有得到 manifest.json 如何在 c#.net 中获取 manifest.json 文件

Manifest file is the zip file that will contain a json file which lists out all the capabilities your app offers and the two icons of the app. You could use App Studio to create your app manifest. Or you can sideload the app manifest if you have the manifest file ready. Here is a sample manifest file. Please let me know if you need any help.

我使用了 Visual Studio 的核心 bot 框架模板并创建了 bot,然后我在下面的 url https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade上注册了应用程序然后在“ https上使用了 Microsoft 应用程序 ID 和 Microsoft 密码: //dev.botframework.com/bots/new " 链接来创建机器人并添加端点为https://113526c2.ngrok.io/api/messages然后在 c#.net 代码中使用 Microsoft App id 和 App 密码,配置 Microsoft App从应用程序注册和端点 url 获取的 id 和应用程序密码在机器人框架模拟器上作为https://113526c2.ngrok.io/api/messages但是机器人在机器人框架上不起作用,为什么?,在机器人模拟器上显示 400 错误如何要解决吗?

By far the easiest way to get a manifest is to use the "App Studio" app in Teams. App Studio is an actual app, in the store, from Microsoft, that you can use for a bunch of things. One of those is to create a new app for Teams, inside of Teams. It has a proper GUI so you can create your app definition, modify and update it, etc., and then export the manifest when you're done. It will generate a zip file, which contains the manifest itself, as well as your app's icons.

However, while you're still building the app, App Studio helps you to deploy (and redeploy over time) the app manually into your own context (eg a 1-1 bot, or into a group chat or a Teams channel). It's also got some validation in as you're going to check that you've entered things correctly.

So, in short, very highly recommended for building apps for Teams, and comes directly from Microsoft. As an extra bit of info, you need the ability to side-load custom apps to be able to deploy your apps into Teams using App Studio.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM