Skip to content
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

App projects only builds from clean (i.e. the first time only) #4983

Merged
merged 2 commits into from
May 22, 2020

Conversation

asklar
Copy link
Member

@asklar asklar commented May 21, 2020

The fix for #4945 introduced an issue that manifests as projects not being able to be built more than once (or without a Clean pass).

The issue is that we Import the AppxRecipe file which has a bug in that the ResolvedSDKReference items are expected to have an OriginalItemSpec attribute in them, but they aren't being produced as such. When the build runs after we've built once already, we import these items from the appxrecipe, which lack this attribute, and the build breaks.

The fix is to only do the import conditional on a new variable which gets set by the CLI on deploy. The Deploy target is made conditional on this variable too.

Microsoft Reviewers: Open in CodeFlow

@asklar asklar requested a review from a team as a code owner May 21, 2020 23:39
@asklar asklar added the AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) label May 21, 2020
@ghost
Copy link

ghost commented May 21, 2020

Hello @asklar!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 10 hours, a condition that will be fulfilled in about 9 hours 55 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 (@msftbot) and give me an instruction to get started! Learn more here.

@asklar
Copy link
Member Author

asklar commented May 22, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@asklar asklar closed this May 22, 2020
@asklar asklar reopened this May 22, 2020
@asklar asklar merged commit cd9206e into microsoft:master May 22, 2020
ZihanChen-MSFT pushed a commit to ZihanChen-MSFT/react-native-windows that referenced this pull request May 22, 2020
…soft#4983)

* Fix deploy issue causing 2nd+ builds to break due to bug in appxrecipe which gets imported

* Change files
nasadigital pushed a commit to nasadigital/react-native-windows that referenced this pull request May 26, 2020
…soft#4983)

* Fix deploy issue causing 2nd+ builds to break due to bug in appxrecipe which gets imported

* Change files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants