Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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