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

Unable to specify project dependencies when using autolinking/npm package #216

Open
dunhor opened this issue Apr 4, 2022 · 0 comments
Open
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@dunhor
Copy link
Member

dunhor commented Apr 4, 2022

The scenario is basically this:


Some React Native Windows application 'A' has, as a part of it, a custom-written WinRT component 'C'. 'A' wishes to consume 'C' via JavaScript and would like to use React Native WinRT to do so.


As it stands today, this is not possible (AFAIK) when using autolinking/the npm package. The key underlying issue is the inability to specify a ProjectReference in the WinRTTurboModule project's vcxproj because the project file is a part of the npm package. We might be able to work around this using properties in the ExperimentalFeatures.props file, however I'm unsure how we might go about this, and it would undoubtedly be a hacky workaround.

Another option might be to address this in React Native Windows itself by adding the ability to specify such dependencies somehow. But again, I'm not really sure what that would look like. Perhaps all autolinked modules could have dependencies on all non-app projects, but I'm not sure what that might break.

The last option would be to do nothing. Anyone with a custom WinRT component is likely already a "power user" so following the steps for consuming the nuget package and manually creating a project wouldn't be that foreign to them.

@dunhor dunhor added enhancement New feature or request help wanted Extra attention is needed labels Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant