From 2e07ddee45dc1e05d919964624a7798ac8b4cc60 Mon Sep 17 00:00:00 2001 From: Christian Weiss Date: Sun, 20 Mar 2016 11:15:26 +0100 Subject: [PATCH] Replaces Hosting:Environment with new values in docs --- .../IHostingEnvironment.cs | 2 +- .../Deployers/IISDeployer.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.AspNetCore.Hosting.Abstractions/IHostingEnvironment.cs b/src/Microsoft.AspNetCore.Hosting.Abstractions/IHostingEnvironment.cs index b6cc64252f..4b0b3d5ac9 100644 --- a/src/Microsoft.AspNetCore.Hosting.Abstractions/IHostingEnvironment.cs +++ b/src/Microsoft.AspNetCore.Hosting.Abstractions/IHostingEnvironment.cs @@ -12,7 +12,7 @@ namespace Microsoft.AspNetCore.Hosting { /// /// Gets or sets the name of the environment. This property is automatically set by the host to the value - /// of the "Hosting:Environment" (on Windows) or "Hosting__Environment" (on Linux & OS X) environment variable. + /// of the "ASPNETCORE_ENVIRONMENT" environment variable. /// // This must be settable! string EnvironmentName { get; set; } diff --git a/src/Microsoft.AspNetCore.Server.Testing/Deployers/IISDeployer.cs b/src/Microsoft.AspNetCore.Server.Testing/Deployers/IISDeployer.cs index 78132321c8..48b0527f8f 100644 --- a/src/Microsoft.AspNetCore.Server.Testing/Deployers/IISDeployer.cs +++ b/src/Microsoft.AspNetCore.Server.Testing/Deployers/IISDeployer.cs @@ -87,10 +87,10 @@ namespace Microsoft.AspNetCore.Server.Testing private void SetAspEnvironmentWithJson() { - ////S Drop a hosting.json with Hosting:Environment information. - // Logger.LogInformation("Creating hosting.json file with Hosting:Environment."); + ////S Drop a hosting.json with environment information. + // Logger.LogInformation("Creating hosting.json file with environment information."); // var jsonFile = Path.Combine(DeploymentParameters.ApplicationPath, "hosting.json"); - // File.WriteAllText(jsonFile, string.Format("{ \"Hosting:Environment\":\"{0}\" }", DeploymentParameters.EnvironmentName)); + // File.WriteAllText(jsonFile, string.Format("{ \"environment\":\"{0}\" }", DeploymentParameters.EnvironmentName)); } private class IISApplication