Skip to content

Commit afe68dc

Browse files
authored
fix(windows): update template to set paths dynamically (#2249)
1 parent caeda7b commit afe68dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

windows/test-app.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ export function generateSolution(destPath, options, fs = nodefs) {
198198
...templateView,
199199
name: path.basename(projectFileName, path.extname(projectFileName)),
200200
useExperimentalNuget: info.useExperimentalNuGet,
201+
rnwPathFromProjectRoot: path.relative(
202+
path.dirname(projectManifest),
203+
rnWindowsPath
204+
),
201205
})
202206
// The current version of this template (v0.63.18) assumes that
203207
// `react-native-windows` is always installed in

0 commit comments

Comments
 (0)