Application Insights 向我的项目添加了 ConnectedService.json 文件,这是做什么的?

Application Insights added ConnectedService.json file to my project, what does this do?

我已将应用程序洞察添加到我的 asp.net 4.6 网络应用程序中。

这也添加了文件 Service References\Application Insights\ConnectedService.json

此文件的内容:

{
  "ProviderId": "Microsoft.ApplicationInsights.ConnectedService.ConnectedServiceProvider",
  "Version": "7.1.719.1",
  "GettingStartedDocument": {
    "Uri": "https://go.microsoft.com/fwlink/?LinkID=613413"
  }
}

这个文件是做什么用的?它似乎没有为我的应用程序提供任何逻辑,并且似乎不需要任何工作。

此文件只是对已安装 Application Insights(或任何其他连接的服务)的 Visual Studio "Connected Services" 工具、安装它的服务版本以及安装位置的简单标记入门文档。该文件未编译到您的应用程序中,未设置为项目中包含的内容或其他任何内容,它仅供连接服务了解您安装的内容。

此信息显示在解决方案资源管理器中名为 "Service References" 的文件夹中,您将看到以这种方式添加的所有连接服务。您可以双击那里的节点重新打开文档。

要查看还有哪些其他服务可用,您可以右键单击该项目,转到“添加”->“连接的服务”,然后在此处查看更多项目。

更多信息,您可以观看第 9 频道的视频: https://channel9.msdn.com/Shows/Visual-Studio-Toolbox/Connected-Services