首页 > 解决方案 > Hello World 示例:安装/测试时出现“出现问题”

问题描述

我试图从https://docs.microsoft.com/en-us/microsoftteams/platform/get-started/get-started-dotnet获取示例来运行。我成功地构建并发布了(在 Azure 上)webapp。然后我尝试 - 类似于文档所说的那样在 Visual Studio 解决方案中手动编辑 json 文件,然后在 App Studio 中导入生成的 zip - 通过清单编辑器直接在 App Studio 中添加应用程序(这有效,但失败时安装/测试它)

两者都给我一个错误,没有更多信息“出了问题”。

有什么方法可以真正弄清楚我做错了什么(如果有的话)?

无论哪种方式,也许你们可以从 json 文件的内容中弄清楚:

{
"$schema": "https://statics.teams.microsoft.com/sdk/v1.0/manifest/MicrosoftTeams.schema.json",
  "manifestVersion": "1.0",
  "version": "1.0.0",
  "id": " 1CC58D17-1E95-443C-958F-E1F14D4CA3B4",
  "packageName": "com.contoso.helloworld",
  "developer": {
    "name": "Contoso",
    "websiteUrl": "https://www.microsoft.com",
    "privacyUrl": "https://www.microsoft.com/privacy",
    "termsOfUseUrl": "https://www.microsoft.com/termsofuse"
  },
  "name": {
    "short": "Hello World",
    "full": "Hello World App for Microsoft Teams"
  },
  "description": {
    "short": "Hello World App for Microsoft Teams",
    "full": "This sample app provides a very simple app for Microsoft Teams. You can extend this to add more content and capabilities."
  },
  "icons": {
    "outline": "contoso20x20.png",
    "color": "contoso96x96.png"
  },
  "accentColor": "#60A18E",
  "staticTabs": [
    {
      "entityId": "com.contoso.helloworld.hellotab",
      "name": "Hello Tab",
      "contentUrl": "https://microsoftteamssampleshelloworldweb20181022032046.azurewebsites.net/hello",
      "scopes": [
        "personal"
      ]
    }
  ],
  "configurableTabs": [
    {
      "configurationUrl": "https://microsoftteamssampleshelloworldweb20181022032046.azurewebsites.net/configure",
      "canUpdateConfiguration": true,
      "scopes": [
        "team"
      ]
    }
  ],
  "bots": [
    {
      "botId": "00000000-0000-0000-0000-000000000000",
      "needsChannelSelector": false,
      "isNotificationOnly": false,
      "scopes": [
        "team",
        "personal"
      ]
    }
  ],
  "composeExtensions": [
    {
      "botId": "00000000-0000-0000-0000-000000000000",
      "scopes": [
        "personal",
        "team"
      ],
      "commands": [
        {
          "id": "getRandomText",
          "description": "Gets some random text and images that you can insert in messages for fun.",
          "title": "Get some random text for fun",
          "initialRun": true,
          "parameters": [
            {
              "name": "cardTitle",
              "description": "Card title to use",
              "title": "Card title"
            }
          ]
        }
      ]
    }
  ],
  "permissions": [],
  "validDomains": []
}

有什么建议么?

标签: jsonmanifestmicrosoft-teamsmicrosoft-appstudio

解决方案


共享清单中的应用程序 ID 中有一个空格:

"id": " 1CC58D17-1E95-443C-958F-E1F14D4CA3B4"  

您能否将其删除并尝试让我们知道它是否有效?如果需要,您还可以删除机器人和 composeExtensions 部分。


推荐阅读