-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix new project build #4469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix new project build #4469
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove the other place this is imported now that we import it earlier?
Nevermind. Missed that the other was in the repo root.
|
Hello @vmoroz! Because this pull request has the Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 60 minutes, a condition that will be fulfilled in about 44 minutes. No worries though, I will be back when the time is right! 😉 p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
* Set $(ReactNativeWindowsDir) before it is used * Change files
* Fix crash when calling measure on non-framework element (#4473) * Fix crash when calling measure on non-framework element * Change files * Fix new project build (#4469) * Set $(ReactNativeWindowsDir) before it is used * Change files * Update MSBuild ADO Tasks to use MSBuild x64 (#4462) * Removed x86 override for msbuild tasks in CI, publish * Switch from MSBuild to VSBuild * Added `<AppxGeneratePrisForPortableLibrariesEnabled>false</AppxGeneratePrisForPortableLibrariesEnabled>` to C# app projects to fix build issues with msbuild x64 * Added `/p:AppxGeneratePrisForPortableLibrariesEnabled=false` for testcli build task * Some Direct Debugging fixes (#4440) * Fix direct debugging * formatting * Change files * Add timeout to certificate generation on project init (#4430) * Add a timeout to catch hangs during cert generation * Change files * Update change files to use patch version bumping * publishing fix Co-authored-by: Vladimir Morozov <vmoroz@users.noreply.github.com> Co-authored-by: Jon Thysell <jthysell@microsoft.com>
microsoft#4469 reordered build logic to define ReactNativeWindowsDir before it was seemingly used. This actually made it so we no longer correctly put patched react native sources in the right intermediate build output directory, since we don't define IntDir before including directory logic. Seemingly the previous documented assumption was that we should define ReactNativeWindowsDir before including ReactPackageDirectories.props. This is oddd/error prone. This change combines logic so we can correctly interleave dependencies. It has the side effect of forcing anything including ReactPackageDirectories to include out intermediate output dir. This should only affect ReactUwp projects, which we will no longer be supporting for 0.62. We can't actually test that this fixes publish because of microsoft#3889, but this should theoretically fix the issue. Tested locally that we can build Playground.
* Clean Up Directory Logic to Fix Publish #4469 reordered build logic to define ReactNativeWindowsDir before it was seemingly used. This actually made it so we no longer correctly put patched react native sources in the right intermediate build output directory, since we don't define IntDir before including directory logic. Seemingly the previous documented assumption was that we should define ReactNativeWindowsDir before including ReactPackageDirectories.props. This is oddd/error prone. This change combines logic so we can correctly interleave dependencies. It has the side effect of forcing anything including ReactPackageDirectories to include out intermediate output dir. This should only affect ReactUwp projects, which we will no longer be supporting for 0.62. We can't actually test that this fixes publish because of #3889, but this should theoretically fix the issue. Tested locally that we can build Playground. * Change files
When we create a new project using the 'react-native init' we have a build error.
It says that it cannot find Microsoft.ReactNative.winmd file.
The issue was that the target destination of this file is reported as a relative path instead of an absolute one. This is because the $(ReactNativeWindowsDir) variable is not initialized since the Directory.Build.props file from our repo root folder is not deployed.
In this PR we ensure that we properly initialize the $(ReactNativeWindowsDir) before it is used for the build and target folder creation. It fixes the issue with the new project builds.
Microsoft Reviewers: Open in CodeFlow