Skip to content

Conversation

@vmoroz
Copy link
Member

@vmoroz vmoroz commented Nov 15, 2025

Description

Add Nuget restore to yarn build to avoid deadlocks when solution is opened in Visual Studio.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

When we open a solution in Visual Studio we often see a deadlock or build breaks.
It makes using RNW code in VS almost impossible.
As described in this PR #15137 the issue is caused by VS not being able to restore NPM packages.
From another hand, the package restore has no issues when we build the same code from MSBuild.

What

This PR addresses the issue by restoring the Nuget packages as a part of the "yarn build".
This way when the solution is opened in VS we do not need to restore Nuget packages anymore and we do not have deadlocks or build breaks.

Changelog

Should this change be included in the release notes: no

Microsoft Reviewers: Open in CodeFlow

@vmoroz vmoroz requested review from a team as code owners November 15, 2025 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants