From ed22d033d7a6756b24a158bc6cf91f29939a681e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Feb 2026 17:52:39 +0000 Subject: [PATCH 1/2] Initial plan From 0b5594a8d423e27b56b74e3e64810192d129ed4d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Feb 2026 17:54:08 +0000 Subject: [PATCH 2/2] Fix ResolveLinkTarget_Succeeds test failing on Windows with UNC disabled Co-authored-by: jozkee <16040868+jozkee@users.noreply.github.com> --- .../tests/Base/SymbolicLinks/BaseSymbolicLinks.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/libraries/System.IO.FileSystem/tests/Base/SymbolicLinks/BaseSymbolicLinks.cs b/src/libraries/System.IO.FileSystem/tests/Base/SymbolicLinks/BaseSymbolicLinks.cs index adaec2b9094f00..f08d4a0ce2dcc2 100644 --- a/src/libraries/System.IO.FileSystem/tests/Base/SymbolicLinks/BaseSymbolicLinks.cs +++ b/src/libraries/System.IO.FileSystem/tests/Base/SymbolicLinks/BaseSymbolicLinks.cs @@ -57,11 +57,18 @@ public static IEnumerable SymbolicLink_ResolveLinkTarget_PathToTarget_ { get { - foreach (string path in PathToTargetData.Union(PathToTargetUncData)) + foreach (string path in PathToTargetData) { yield return new object[] { path, false }; yield return new object[] { path, true }; } + // UNC paths are excluded from the returnFinalTarget=true case since + // they throw "The specified network name is no longer available" in + // various Windows versions. https://github.com/dotnet/runtime/issues/120380 + foreach (string path in PathToTargetUncData) + { + yield return new object[] { path, false }; + } } }