本文介绍了Application Insights将ConnectedService.json文件添加到了我的项目中,这是怎么做的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将应用程序见解添加到我的asp.net 4.6 Web应用程序中.

I have added application insights to my asp.net 4.6 web application.

这也添加了文件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" }}

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

此文件的用途是什么?它似乎没有为我的应用程序提供任何逻辑,并且似乎不需要任何东西来工作.

What is this file for? It does not seem to provide any logic to my application and does not seem to be required for anything to work.

推荐答案

此文件只是安装了Application Insights(或任何其他连接的服务)的Visual Studio连接的服务"工具的标记,以及该服务的哪个版本安装它,以及入门文档的去向.该文件未编译到您的应用程序中,未设置为项目中包含的内容或其他任何内容,只有在此位置,Connected Services才能知道您已安装了什么东西.

This file is simply a marker to the Visual Studio "Connected Services" tooling that Application Insights (or any other connected service) was installed, what version of that service installed it, and where to go for getting started documents. The file is not compiled into your app, is not set to content included in the project or anything else, it is only there for Connected Services to know what things you've installed.

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

This info shows up in solution explorer in a folder called "Service References", and you'll see all of the connected services you have added that way. You can double click the node there to re-open the documentation.

要查看可用的其他服务,可以右键单击该项目,转到添加->已连接的服务,然后在其中查看更多项目.

To see what other services are available, you can right click the project, go to add->connected service and see more items there.

有关更多信息,您可以观看第9频道的视频: https://channel9.msdn.com/Shows/Visual-Studio-工具箱/连接的服务

For more information, you can see this channel 9 video:https://channel9.msdn.com/Shows/Visual-Studio-Toolbox/Connected-Services

这篇关于Application Insights将ConnectedService.json文件添加到了我的项目中,这是怎么做的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-31 17:09