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

谁说我不能喝 提交于 2019-12-22 02:22:21

问题


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

This also added the file Service References\Application Insights\ConnectedService.json

The contents of this file:

{ "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.


回答1:


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.

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



来源:https://stackoverflow.com/questions/38571423/application-insights-added-connectedservice-json-file-to-my-project-what-does-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!