Does the ApplicationInsights.config need to sit in the output directory's (bin folder) root directory, or can i put it inside sub folders in the output directory (bin folder)
<Content Include="Service References\**" Exclude="Service References\Application Insights\ApplicationInsights.config" />
<Content Include="Service References\Application Insights\ApplicationInsights.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
I can't find information on whether that's allowed or not:
As you've seen, this is currently the case; It only looks in AppDomain.CurrentDomain.BaseDirectory
for ApplicationInsights.config
It's hard-coded for the dotnet framework implementation at least.
Interestingly, the netstandard version returns null for that method.