title: VSTS/TFS set environment variable ASP.NET core
body: <p>I'm trying to deploy an ASP.NET Core application to IIS using VSTS with the following tasks</p>
  
  <p><a href="https://i.stack.imgur.com/fouUL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/fouUL.png" alt="enter image description here"></a></p>
  
  <p>However, after much googling and browsing through MS docs I couldn't find a way to set environment variables for the deployment. The variables I set in the release definition in environment scope aren't getting set as environment variables. </p>
  
  <p><a href="https://i.stack.imgur.com/oiGry.png" rel="noreferrer"><img src="https://i.stack.imgur.com/oiGry.png" alt="enter image description here"></a></p>
  
  <p>Any idea how to achieve that?</p>