diff --git a/change/react-native-windows-ec20474f-348e-471b-b524-d59d85123ea5.json b/change/react-native-windows-ec20474f-348e-471b-b524-d59d85123ea5.json new file mode 100644 index 00000000000..556d14b7d23 --- /dev/null +++ b/change/react-native-windows-ec20474f-348e-471b-b524-d59d85123ea5.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Fix `codegen-windows` being run from the wrong directory", + "packageName": "react-native-windows", + "email": "4123478+tido64@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/vnext/PropertySheets/Codegen.props b/vnext/PropertySheets/Codegen.props index 683b075c4c8..c1e88c15192 100644 --- a/vnext/PropertySheets/Codegen.props +++ b/vnext/PropertySheets/Codegen.props @@ -1,14 +1,14 @@ - true npx react-native codegen-windows - $([MSBuild]::GetDirectoryNameOfFileAbove($(ProjectDir), 'package.json')) + $([MSBuild]::GetDirectoryNameOfFileAbove($(SolutionDir), 'package.json')) --logging