diff --git a/src/libraries/System.IO.FileSystem/src/System.IO.FileSystem.csproj b/src/libraries/System.IO.FileSystem/src/System.IO.FileSystem.csproj
index df5ddd614c29f..827969b028138 100644
--- a/src/libraries/System.IO.FileSystem/src/System.IO.FileSystem.csproj
+++ b/src/libraries/System.IO.FileSystem/src/System.IO.FileSystem.csproj
@@ -193,7 +193,9 @@
+ Link="Common\System\IO\DriveInfoInternal.Unix.cs" Condition="'$(TargetsBrowser)' != 'true'" />
+
-
+
+
diff --git a/src/libraries/System.Private.CoreLib/src/System/Environment.Browser.cs b/src/libraries/System.Private.CoreLib/src/System/Environment.Browser.cs
index 9ef90da4762d6..4f2beaa3b01bf 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Environment.Browser.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Environment.Browser.cs
@@ -1,12 +1,14 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using System.IO;
+
namespace System
{
public static partial class Environment
{
// Emscripten VFS mounts at / and is the only drive
- public static string[] GetLogicalDrives() => new string[] { "/" };
+ public static string[] GetLogicalDrives() => DriveInfoInternal.GetLogicalDrives();
// In the mono runtime, this maps to gethostname, which returns 'emscripten'.
// Returning the value here allows us to exclude more of the runtime.
diff --git a/src/libraries/System.Private.CoreLib/src/System/IO/DriveInfoInternal.Browser.cs b/src/libraries/System.Private.CoreLib/src/System/IO/DriveInfoInternal.Browser.cs
new file mode 100644
index 0000000000000..858a56228216c
--- /dev/null
+++ b/src/libraries/System.Private.CoreLib/src/System/IO/DriveInfoInternal.Browser.cs
@@ -0,0 +1,11 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.IO
+{
+ /// Contains internal volume helpers that are shared between many projects.
+ internal static partial class DriveInfoInternal
+ {
+ internal static string[] GetLogicalDrives() => new string[] { "/" };
+ }
+}