From: Steve Harter Date: Wed, 10 May 2023 19:15:12 +0000 (-0500) Subject: Revert "let user know working directory will be used as content root path by default... X-Git-Tag: accepted/tizen/unified/riscv/20231226.055536~2318 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d80ba2f1fdb209703a15d6954fefe8a44d442058;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Revert "let user know working directory will be used as content root path by default (#82445)" (#86057) This reverts commit c958573654937f9582b6a23522b2ad16cd7dbf96. --- diff --git a/src/libraries/Microsoft.Extensions.Hosting/src/Internal/ConsoleLifetime.cs b/src/libraries/Microsoft.Extensions.Hosting/src/Internal/ConsoleLifetime.cs index 5f23099..372a614 100644 --- a/src/libraries/Microsoft.Extensions.Hosting/src/Internal/ConsoleLifetime.cs +++ b/src/libraries/Microsoft.Extensions.Hosting/src/Internal/ConsoleLifetime.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.IO; using System.Runtime.Versioning; using System.Threading; using System.Threading.Tasks; @@ -80,13 +79,6 @@ namespace Microsoft.Extensions.Hosting.Internal Logger.LogInformation("Application started. Press Ctrl+C to shut down."); Logger.LogInformation("Hosting environment: {EnvName}", Environment.EnvironmentName); Logger.LogInformation("Content root path: {ContentRoot}", Environment.ContentRootPath); - string contentRootFullPath = Path.GetFullPath(Environment.ContentRootPath); - - if (contentRootFullPath.Equals(System.Environment.CurrentDirectory, StringComparison.Ordinal) - || contentRootFullPath.Equals(AppContext.BaseDirectory, StringComparison.Ordinal)) - { - Logger.LogInformation("Current working directory is /. If Content root path is not set explicitly, then working directory is used by default."); - } } private void OnApplicationStopping()