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

Autolinking for C++ projects only generates AutolinkedNativeModules.g.cpp, not the header file #13174

Open
jonthysell opened this issue May 1, 2024 · 1 comment
Labels
Area: Autolinking bug Partner: Xbox (label may be applied by bot based on author)
Milestone

Comments

@jonthysell
Copy link
Contributor

Problem Description

The header file is necessary, and while it doesn't really change when autolinking is run, autolinking should still (re)create the file, as it may have been deleted by the end user (or missing for another reason) and we claim in the file that it gets generated by the autolink command, when it clearly isn't.

Steps To Reproduce

  1. Create a new C++ RNW project.
  2. Delete AutolinkedNativeModules.g.h
  3. Run autolink-windows or run-windows

Expected Results

The file gets recreated.

CLI version

npx react-native -v

Environment

npx react-native info

Target Platform Version

None

Target Device(s)

No response

Visual Studio Version

None

Build Configuration

None

Snack, code example, screenshot, or link to a repository

No response

@jonthysell jonthysell added the bug label May 1, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) label May 1, 2024
@jonthysell
Copy link
Contributor Author

This bug was found by our partners in Xbox.

@jonthysell jonthysell added the Partner: Xbox (label may be applied by bot based on author) label May 1, 2024
@chrisglein chrisglein added Area: Autolinking and removed Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) labels May 6, 2024
@chrisglein chrisglein added this to the Backlog milestone May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Autolinking bug Partner: Xbox (label may be applied by bot based on author)
Projects
None yet
Development

No branches or pull requests

2 participants