Hello World示例:安装/测试时“出现了问题”

时间:2018-10-23 16:01:09

标签: json manifest microsoft-teams microsoft-appstudio

我尝试从https://docs.microsoft.com/en-us/microsoftteams/platform/get-started/get-started-dotnet获取示例以运行。 我成功构建并发布了(在Azure上)该Web应用程序。 然后我尝试  -以类似于文档所说的方式在Visual Studio解决方案中手动编辑json文件,然后将生成的zip导入App Studio  -通过清单编辑器直接在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": []
}

有什么建议吗?

2 个答案:

答案 0 :(得分:1)

您的应用ID中有一个共享空格中的空格:

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

您能否将其删除并尝试让我们知道它是否有效?另外,您也可以根据需要删除bots和composeExtensions部分。

答案 1 :(得分:0)

我目前无法发表评论(信誉得分不足),但是您可以再次阅读说明吗? 我相信GUID或URL之一出了问题。这些说明还建议您使用ngrok,这对于调试很有用。 如果找不到清晰的错误消息,建议您遵循这些说明。