Closed MacKenzieHnC closed 1 year ago
For reasons I cannot comprehend, changing the target platform version in ReactNativeDocumentPicker.csproj
from
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == ''">10.0.18362.0</TargetPlatformVersion>
to
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == ''">10.0.19041.0</TargetPlatformVersion>
fixes the minimal repro,
EDIT: but not the original project, so I guess they aren't the same error after all. I'll try and find what other module is playing badly with this.
I still don't know what the core issue is, but there's a ton of duplicate errors coming from the included Microsoft.React.Managed
projects
EDIT: And I've now managed to reproduce the bugs on a new blank module, so it's not unique to this module.
Managed to get a workaround, but I don't feel good about it. I just followed every error to the file it listed and commented out the offending code. Commenting auto-generated code does not feel like a valid solution, but we're kind of at Microsoft's whims for the time being.
I can close this if you want, but, while the bug doesn't originate here, it certainly affects this repo.
Bug report
Summary
EDIT: Okay, this is the root issue. Still working on how to solve it, but it seems to only affect C#
Reproducible sample code
A different issue pops up in a minimal repro, but I think they have the same root cause.
Repro: https://github.com/MacKenzieHnC/DocumentPickerBug
I'm pretty sure the error comes from this change. Look at the additions to
windows/DocumentPickerBug.sln
.I'm not sure that that's the error, but it seems most likely to me right now.
Steps to reproduce
Environment info
npx react-native info
output:library version: 8.1.3
iOS / Android version: N/A