From 381f3e64763205cfc1768ee4b00d117b549c666f Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 11 Sep 2025 04:24:46 +0000
Subject: [PATCH 1/2] Initial plan
From 18cf6f9bcf0fffa6005971dec3e6cd1854fe74ce Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 11 Sep 2025 04:32:57 +0000
Subject: [PATCH 2/2] Remove problematic restore calls from
BeforeResolveReferences target
- Remove MSBuild calls to Restore target from BeforeResolveReferences in VS builds
- Add explanatory comments documenting why restore calls cause deadlocks
- Preserve all other functionality while fixing the deadlock issue
- Visual Studio will handle NuGet restoration through its own mechanisms
Co-authored-by: anupriya13 <54227869+anupriya13@users.noreply.github.com>
---
vnext/Directory.Build.targets | 26 +++++++------------
.../Microsoft.ReactNative.Common.targets | 26 +++++++------------
2 files changed, 20 insertions(+), 32 deletions(-)
diff --git a/vnext/Directory.Build.targets b/vnext/Directory.Build.targets
index a2ab4fd389c..d3d50f073d7 100644
--- a/vnext/Directory.Build.targets
+++ b/vnext/Directory.Build.targets
@@ -4,22 +4,16 @@
-
-
-
-
-
-
-
-
+
diff --git a/vnext/PropertySheets/External/Microsoft.ReactNative.Common.targets b/vnext/PropertySheets/External/Microsoft.ReactNative.Common.targets
index c6b1c6196ae..eea3002c0da 100644
--- a/vnext/PropertySheets/External/Microsoft.ReactNative.Common.targets
+++ b/vnext/PropertySheets/External/Microsoft.ReactNative.Common.targets
@@ -14,21 +14,15 @@
-
-
-
-
-
-
-
-
+
\ No newline at end of file