From the course: Visual Studio App Center for Developers

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Environment variables

Environment variables - Visual Studio Tutorial

From the course: Visual Studio App Center for Developers

Start my 1-month free trial

Environment variables

- [Instructor] Visual Studio App Center builds have a concept of environment variables. These can be used for a variety of reasons. For example, it is common not to want to store passwords or API keys in public repositories. These can be setup using environment variables. Anything you may think needs to be passed to a build script as a parameter can be set up as an environment variable instead, we're going to do this for our QA build. So we're going to switch to the QA branch (mumbles). And make sure the active branch selector is next to the QA branch. Next we'll go to Visual Studio for Mac. In Visual Studio for Mac, we are going to set up a constant to contain a Visual Studio App Center API key that we will use in a later chapter. Since we don't want to check (mumbles) control we won't actually hard code the API key into our file. In our share project we're going to go to File and New File and we're going to create an empty class and call it constants. First going to remove the…

Contents