From 2b6a9d13174cf7581301eff19e0d418250cd2dae Mon Sep 17 00:00:00 2001 From: Artem Lysenko Date: Thu, 16 Jul 2026 17:00:25 +0200 Subject: [PATCH] Fix CS0234 in BaseDirectory auto-initializer: qualify System.Globalization with global:: The generated WindowsAppRuntimeBaseDirectoryAutoInitializer.cs lives in namespace Microsoft.Windows.ApplicationModel.WindowsAppRuntime.BaseDirectoryCS. When compiled into a consumer that references the Microsoft.Windows.System WinMD, the leading 'System' in 'System.Globalization.CultureInfo' binds to Microsoft.Windows.System (via the enclosing Microsoft.Windows namespace) instead of the root System namespace, producing CS0234 (namespace 'Globalization' does not exist in 'Microsoft.Windows.System'). This broke TransportPackage-Foundation-Nightly. Qualify with global:: to force the root namespace. --- dev/Common/WindowsAppRuntimeBaseDirectoryAutoInitializer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/Common/WindowsAppRuntimeBaseDirectoryAutoInitializer.cs b/dev/Common/WindowsAppRuntimeBaseDirectoryAutoInitializer.cs index e4756c9b4d..003c1fb602 100644 --- a/dev/Common/WindowsAppRuntimeBaseDirectoryAutoInitializer.cs +++ b/dev/Common/WindowsAppRuntimeBaseDirectoryAutoInitializer.cs @@ -29,7 +29,7 @@ internal static void AccessWindowsAppSDK() // being steered to read files from a parent-controlled directory). // See https://github.com/microsoft/WindowsAppSDK/issues/5987. Environment.SetEnvironmentVariable("MICROSOFT_WINDOWSAPPRUNTIME_BASE_DIRECTORY_PID", - Environment.ProcessId.ToString(System.Globalization.CultureInfo.InvariantCulture)); + Environment.ProcessId.ToString(global::System.Globalization.CultureInfo.InvariantCulture)); } } }