2

我已经创建了一个 ASP.NET MVC5 应用程序(启用了 Application Insights)并让它与 Git 和 Visual Studio Online 一起工作。当我进行构建时,它失败并出现以下错误:

C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (3951): Could not copy the file "C:\a\src\packages\Microsoft.Diagnostics.Instrumentation.Extensions.Intercept.0.12.0-build02810\lib\native\x64\Microsoft.ApplicationInsights.Extensions.Intercept_x64.dll" because it was not found.

4

2 回答 2

1

微软的回复是这个问题应该在下一个版本中修复。或尝试此解决方法:将其添加到您的 proj 文件中

<ItemGroup>

    <None Include="[Specify path to get to packages like:..\..\packages]\Microsoft.Diagnostics.Instrumentation.Extensions.Intercept.0.12.0-[SpecifyCorrectBuildNumber]\lib\native\x86\Microsoft.ApplicationInsights.Extensions.Intercept_x86.dll">

     < CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

    </None>

    <None Include="="[Specify path to get to packages like:..\..\packages]\Microsoft.Diagnostics.Instrumentation.Extensions.Intercept.0.12.0-[SpecifyCorrectBuildNumber]\lib\native\x64\Microsoft.ApplicationInsights.Extensions.Intercept_x64.dll">

     < CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

   </None>

  </ItemGroup>
于 2014-12-11T16:46:38.923 回答
0

我想我已经解决了这个问题;看看我在这里发布的答案:

使用 Application Insights 状态监视器预览向应用程序添加见解时出现异常运行应用程序

于 2014-12-12T11:40:23.927 回答