Skip to content

Commit

Permalink
fix(windows): fix random Windows build failure (#1235)
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 committed Nov 30, 2022
1 parent 72cdacf commit 4d94242
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions windows/test-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,21 @@ function generateSolution(destPath, { autolink, useHermes, useNuGet }) {
});
}

// TODO: Remove when we drop support for 0.69.
// Patch building with Visual Studio 2022. For more details, see
// https://github.com/microsoft/react-native-windows/pull/10373
if (rnWindowsVersionNumber < 7000) {
const helpers = path.join(
rnWindowsPath,
"Microsoft.ReactNative",
"Utils",
"Helpers.h"
);
copyAndReplace(helpers, helpers, {
"inline typename T asEnum": "inline T asEnum",
});
}

if (useNuGet) {
const nugetConfigPath =
findNearest(
Expand Down

0 comments on commit 4d94242

Please sign in to comment.