title: Setting up new relic monitoring for .NET Core 2.0 application
body: <p>I need to set up monitoring for multiple .NET Core 2.0 web-applications, which are hosted on the same server.
  As far as I know, you should add environment variables for this, so I added these lines in web.config and New Relic agent started correctly:</p>
  
  <pre><code>&lt;environmentVariable name="CORECLR_ENABLE_PROFILING" value="1" /&gt;
  &lt;environmentVariable name="CORECLR_PROFILER" value="{36032161-FFC0-4B61-B559-F6C5D41BAE5A}" /&gt;
  &lt;environmentVariable name="CORECLR_NEWRELIC_HOME" value="C:\Program Files\New Relic\.NET Agent NetCore2.0" /&gt;
  &lt;environmentVariable name="CORECLR_PROFILER_PATH" value="%CORECLR_NEWRELIC_HOME%\NewRelic.Profiler.dll" /&gt;
  &lt;environmentVariable name="NEW_RELIC_APP_NAME" value="Some App Name" /&gt;
  </code></pre>
  
  <p>However, in ASP.NET Core 2.0 web.config is generated automatically when you publish your app, so it is not a suitable way of defining variables for CI/CD pipeline. Is there any other way to specify those variables somewhere else, for example in appsettings.json? Or how could I add them automatically to autogenerated web.config file?</p>