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

0.64 Project that depends on a library fails to build the first time #7226

Closed
asklar opened this issue Feb 27, 2021 · 3 comments
Closed

0.64 Project that depends on a library fails to build the first time #7226

asklar opened this issue Feb 27, 2021 · 3 comments
Labels
Area: Build Infrastructure bug External Issue tracked in this repo but change will need to happen in another repo

Comments

@asklar
Copy link
Member

asklar commented Feb 27, 2021

  • npx react-native init demo --template [email protected]
  • cd .\demo\
  • yarn add react-native-xaml
  • npx react-native-windows-init --version 0.64.0-preview.12 --overwrite
  • yarn windows --logging

Result:
the last step of the build fails with a lot of errors like:

     2>MDMERGE : error MDM2009: Duplicate type Microsoft.UI.Xaml.Automation.Peers.AnimatedVisualPlayerAutomationPeer found processing metadata file C:\Users\asklar\source\repos\demo\windows\Debug\ReactNativeXaml\Microsoft.UI.Xaml.winmd, type already exists in file C:\Users\asklar\source\repos\demo\windows\packages\Microsoft.UI.Xaml.2.3.191129002\lib\uap10.0\Microsoft.UI.Xaml.winmd. [C:\Users\asklar\source\repos\demo\windows\demo\demo.vcxproj]
     2>MDMERGE : error MDM2009: Duplicate type Microsoft.UI.Xaml.Automation.Peers.ColorPickerSliderAutomationPeer found processing metadata file C:\Users\asklar\source\repos\demo\windows\Debug\ReactNativeXaml\Microsoft.UI.Xaml.winmd, type already exists in file C:\Users\asklar\source\repos\demo\windows\packages\Microsoft.UI.Xaml.2.3.191129002\lib\uap10.0\Microsoft.UI.Xaml.winmd. [C:\Users\asklar\source\repos\demo\windows\demo\demo.vcxproj]
     2>MDMERGE : error MDM2009: Duplicate type Microsoft.UI.Xaml.Automation.Peers.ColorSpectrumAutomationPeer found processing metadata file C:\Users\asklar\source\repos\demo\windows\Debug\ReactNativeXaml\Microsoft.UI.Xaml.winmd, type already exists in file C:\Users\asklar\source\repos\demo\windows\packages\Microsoft.UI.Xaml.2.3.191129002\lib\uap10.0\Microsoft.UI.Xaml.winmd. [C:\Users\asklar\source\repos\demo\windows\demo\demo.vcxproj]

Subsequent builds succeed, but the first time it fails

@asklar asklar added the bug label Feb 27, 2021
@ghost ghost added the Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) label Feb 27, 2021
@asklar asklar changed the title Project on 0.64 fails to build the first time 0.64 Project that depends on a library fails to build the first time Feb 27, 2021
@asklar
Copy link
Member Author

asklar commented Feb 27, 2021

Looks like a case of microsoft/cppwinrt#452 - tracked by microsoft/xlang#719 and internally by https://task.ms/23751686

@chrisglein chrisglein added Area: Build Infrastructure External Issue tracked in this repo but change will need to happen in another repo and removed Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) labels Mar 1, 2021
@chrisglein
Copy link
Member

Fix will come from elsewhere, so we won't continue to track on this repo. Hopefully this issue will help people with searches looking for support on this.

Key thing, this is the workaround:

Subsequent builds succeed, but the first time it fails

Workaround: If you hit this, build again.

@asklar
Copy link
Member Author

asklar commented Jul 14, 2021

See microsoft/xlang#318 and linked issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Build Infrastructure bug External Issue tracked in this repo but change will need to happen in another repo
Projects
None yet
Development

No branches or pull requests

2 participants