Application Insights is a set of services that integrates production monitoring data with development tools. In many of the demos you will see us opening the solution and code file directly from the production data. For instance in the screenshot below I can click on those blue dots it will take me directly to the specific changeset used to create that deployment- this is done through deployment markers.
Deployment markers are automatically generated by MSBuild – if you instruct it to do so. There are a couple of ways to give MSBuild parameters but since I wanted everything to continue working from within Visual Studio with F5 I needed to modify the project file. From within Visual Studio you need to right click on the project and choose “unload”
This puts the project into a mode you can edit it. (Seem image below)
At this point you need to insert the parameter GenerateBuildInfoConfigFile = True
See the article:
Diagnose problems in deployment with Visual Studio and Microsoft Monitoring Agent
In my case I also wanted the version and server name information so I actually added this to my project file: