首页 > 解决方案 > ApplicationInsights.config 是否需要位于输出目录的根目录中

问题描述

ApplicationInsights.config 是否需要位于输出目录(bin 文件夹)的根目录中,或者我可以将它放在输出目录(bin 文件夹)的子文件夹中

<Content Include="Service References\**" Exclude="Service References\Application Insights\ApplicationInsights.config" />
<Content Include="Service References\Application Insights\ApplicationInsights.config">
  <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>

在此处输入图像描述

我找不到有关是否允许这样做的信息:

https://docs.microsoft.com/en-us/azure/application-insights/app-insights-configuration-with-applicationinsights-config

标签: azure-application-insights

解决方案


我的 ops 同事已经部署了解决方案,显然 ApplicationInsights.config 不会被拾取,除非它包含在根目录中。希望微软将其添加到他们的文档中......或者可能允许在未来对其进行配置。

似乎很奇怪,它必须位于 bin 文件夹的根目录中。*耸耸肩*


推荐阅读