If you ever deal with the problem
nuget package install failed to add applicationinsights.config
in Visual studio 2015 and Windows 10 you only have to create a file and name it ApplicationInsights.config with the code below. That’s because vs and nuget cannot create this file in the root folder of your project.
<?xml version="1.0" encoding="utf-8"?> <ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings"> <InstrumentationKey>xxxx</InstrumentationKey> </ApplicationInsights>
You must enter your specific InstrumentationKey for the application that you have registered through Azure portal for Insights.
The trick is that you must select Build Action as Content and Copy always to output folder