title: .NET Core - Set Environment Variable in Azure Deployment Task
body: <p>I'm currently trying to use the <code>launchSettings.json</code> file to manage the environment variables of the application, so my <code>Setup.cs</code> file can manage the environments in the way of <code>env.IsDevelopmentEnvironment()</code>, etc.</p>
  
  <p>In VSTS, how do I go about setting the environment variable <code>ASPNETCORE_ENVIRONMENT</code> on an Azure Deployment task? Or should it get in the <code>dotnet publish</code> task I've got in my build steps?</p>