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

Error generating header file. Make sure project builds #2

Open
zrajnai-shapr3d opened this issue Sep 8, 2022 · 1 comment
Open
Labels
bug Something isn't working

Comments

@zrajnai-shapr3d
Copy link

Describe the bug
Right clicking on an idl file in solution explorer and clicking on "Update Header File..." produces the error "Error generating header file. Make sure project builds"
My project builds fine.

Opening the developer command prompt, I can execute cppwinrt. Version displayed in the cmd prompt is : C++/WinRT v2.0.201201.7

Are there any logs perhaps that could help with debugging this issue?

@zrajnai-shapr3d zrajnai-shapr3d added the bug Something isn't working label Sep 8, 2022
@smaillet-ms
Copy link

I see this as well, it does have a log file off of AppData but the information it is providing doesn't really help. My best guess is it is making a LOT of assumptions about output locations without using the proper MSBuild macros to locate/find things. In my case I have a Directory.Build.[Props|targets] to customize the entire repository build. That includes re-dierection of ALL build output to a specific location distinct from the rest of the source tree. This keeps the source tree isolated from the build output and it is trivially easy to "clean" the whole repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants