diff --git a/.ado/templates/e2e-test-job.yml b/.ado/templates/e2e-test-job.yml index b6e61d42af7..4088abd50fc 100644 --- a/.ado/templates/e2e-test-job.yml +++ b/.ado/templates/e2e-test-job.yml @@ -40,13 +40,7 @@ jobs: command: restore restoreSolution: packages/E2ETest/windows/ReactUWPTestApp.sln verbosityRestore: Detailed # Options: quiet, normal, detailed - - - task: CmdLine@2 - displayName: Create bundle - inputs: - script: yarn run bundle - workingDirectory: packages/E2ETest - + - task: CmdLine@2 displayName: run-windows inputs: diff --git a/change/react-native-windows-2019-12-30-12-16-46-bundlecrash.json b/change/react-native-windows-2019-12-30-12-16-46-bundlecrash.json new file mode 100644 index 00000000000..6919ae2d56c --- /dev/null +++ b/change/react-native-windows-2019-12-30-12-16-46-bundlecrash.json @@ -0,0 +1,8 @@ +{ + "type": "prerelease", + "comment": "Avoid app crash because content is not bundled for the first time", + "packageName": "react-native-windows", + "email": "licanhua@live.com", + "commit": "703f7d4f116abbb7d40d74681f40e9d8d0a036ce", + "date": "2019-12-30T20:16:46.912Z" +} \ No newline at end of file diff --git a/vnext/PropertySheets/Bundle.Cpp.targets b/vnext/PropertySheets/Bundle.Cpp.targets index d4bb65f57e6..1ad7e09acf6 100644 --- a/vnext/PropertySheets/Bundle.Cpp.targets +++ b/vnext/PropertySheets/Bundle.Cpp.targets @@ -6,12 +6,16 @@ - - - $(BundleContentRoot)\%(RecursiveDir)%(Filename)%(Extension) - true - - + + + + + $(BundleContentRoot)\%(RecursiveDir)%(Filename)%(Extension) + true + + + + BUNDLE;%(PreprocessorDefinitions) diff --git a/vnext/PropertySheets/Bundle.targets b/vnext/PropertySheets/Bundle.targets index b247466fdc5..b4a29033bb9 100644 --- a/vnext/PropertySheets/Bundle.targets +++ b/vnext/PropertySheets/Bundle.targets @@ -6,9 +6,11 @@ - - - PreserveNewest - - + + + + PreserveNewest + + + \ No newline at end of file