This chapter will focus on deploying your ASP.NET Core application to Internet Information Services (IIS) (Microsoft's web server product) and Azure (Microsoft's cloud service). If you plan on deploying to operating systems other than Windows, please consult the documentation for your specific operating system. Before you proceed with deployment, you should be familiar with the environment configuration settings.
In Chapter 8 , Authentication, Authorization, and Security, we took a quick peek at the environment variable that defines the hosting environment, for example, development, staging, or production. You may recall that a list of environment variables appears in the Debug tab of your web project's Properties panel.
Open the launchSettings.json
file to see the same variable in a configuration file:
"environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }
You may have to expand the Properties node in the Solution Explorer panel...