Transforming ApplicationInsights.config depending on build-configuration

Because I wanted to configure adaptive sampling only for my release-configuration in the production environment I wondered whether it is possible to transform ApplicationInsights.config similar to transforming web.config in Web-projects. Turned out that this can be achieved by using the XML-Document-Transform namespace, which is mapped to the xdt prefix. For each build-configuration I added an ApplicationInsights.<build-configuration>.config […]