VS 2013中缺少“将Application Insights遥测添加到项目中"选项 [英] Missing 'Add Application Insights Telemetry to Project' option in VS 2013

查看:485
本文介绍了VS 2013中缺少“将Application Insights遥测添加到项目中"选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个现有的Web项目.我单击将Application Insights遥测添加到项目中",并在此过程中的某个时刻抛出了错误,例如'[...]无法初始化Powershell主机[...]'.然后我根据Google搜索尝试了一些方法. 项目中没有ApplicationInsights.config,也没有引用 Microsoft.ApplicationInsights.Telemetry.Services .

I have an existing Web Project. I clicked "Add Application Insights Telemetry to Project" and at one point in the process it threw an error like '[...] failed to initialize the powershell host [...]'. Then I tried a few things according to Google searches. There is no ApplicationInsights.config in the project, nor is the Microsoft.ApplicationInsights.Telemetry.Services referenced.

现在在任何地方都没有向项目添加Application Insights遥测"选项.我什至试图重新安装Application Insights扩展.

Now there is no 'Add Application Insights Telemetry to Project' option to be found anywhere. I even tried to re-install the Application Insights extension.

我试图通过git回滚所有更改,但是没有运气.

I tried to roll back any changes via git, but without luck.

我的所有团队成员都没有看到VS中的将Application Insights遥测添加到项目中" 选项. (我们都在使用Visual Studio Ultimate 2013 Update 4)

Non of my teammates see the 'Add Application Insights Telemetry to Project' option in VS. (We're all using Visual Studio Ultimate 2013 Update 4)

万一我无法正常工作,是否可以手动设置?

In case I can't get this to work, is there a way to manually set this up?

推荐答案

您可以手动添加nuget程序包(网络上的程序是:

Manually, you can add the nuget package yourself (the web one is: http://www.nuget.org/packages/Microsoft.ApplicationInsights.Web)

,然后在Azure门户上手动创建应用程序见解资源( http://portal.azure.com ),然后获取新资源的检测密钥,然后将其粘贴到nuget软件包安装到项目中的ApplicationInsights.config文件中.

and then manually create an application insights resource on the Azure portal (http://portal.azure.com), and then take the instrumentation key for your new resource, and paste it into the ApplicationInsights.config file that the nuget package installed into your project.

AI VSIX在这些步骤之上添加了一个GUI. (可以帮助您解决vsix的任何问题,我希望您先这样做!)

The AI VSIX adds a GUI on top of those steps. (can help you fix whatever's wrong with the vsix i'd rather have you do that first, though!)

这篇关于VS 2013中缺少“将Application Insights遥测添加到项目中"选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆