Title: Bug: Why CppWinRTModuleInclude not auto include the dependencies of include modules · Issue #1602 · microsoft/cppwinrt · GitHub
Open Graph Title: Bug: Why CppWinRTModuleInclude not auto include the dependencies of include modules · Issue #1602 · microsoft/cppwinrt
X Title: Bug: Why CppWinRTModuleInclude not auto include the dependencies of include modules · Issue #1602 · microsoft/cppwinrt
Description: Version 3.0.260520.1 Summary When we use CppWinRTModuleInclude, we expect that we can write the module which we need so that we do not need to generate everything. But when we add it, we will find that it is useless because it indeed onl...
Open Graph Description: Version 3.0.260520.1 Summary When we use CppWinRTModuleInclude, we expect that we can write the module which we need so that we do not need to generate everything. But when we add it, we will find ...
X Description: Version 3.0.260520.1 Summary When we use CppWinRTModuleInclude, we expect that we can write the module which we need so that we do not need to generate everything. But when we add it, we will find ...
Opengraph URL: https://github.com/microsoft/cppwinrt/issues/1602
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: Why CppWinRTModuleInclude not auto include the dependencies of include modules","articleBody":"### Version\n\n3.0.260520.1\n\n### Summary\n\nWhen we use `CppWinRTModuleInclude`, we expect that we can write the module which we need so that we do not need to generate everything. But when we add it, we will find that it is useless because it indeed only generates the module we write but not consider the dependencies which the module referenced. So that we need to write all dependencies manually. But the dependencies of dependencies of dependencies will be almost all namespace to include. We are almost unable to find out all the dependencies.\n\n### Reproducible example\n\nAdd\n\n```xml\n\u003cCppWinRTModuleInclude>\n Windows.Foundation\n\u003c/CppWinRTModuleInclude>\n```\n\nThen try to fix the dependencies. Do not say use `CppWinRTModuleExclude`, we need use all the member under `Windows.Foundation` and do not want to know what they dependence.\n\n### Expected behavior\n\nC++/WinRT should add all used module.\n\n### Actual behavior\n\nC++/WinRT only add `Windows.Foundation`.\n\n### Additional comments\n\nI don't think it is a feature. Or the C++/WinRT should include all `Windows.*` modules just like C#/WinRT so that when we add third part `CppWinRTModuleInclude` it can correctly reference the `Windows.*` modules.","author":{"url":"https://github.com/wherewhere","@type":"Person","name":"wherewhere"},"datePublished":"2026-06-27T14:26:02Z","url":"https://github.com/microsoft/cppwinrt/issues/1602"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b50c36fb-8101-b411-6f10-64f5ce0cbf33 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A17A:3E1398:AF5D3D:EAD95D:6B0049DC |
| html-safe-nonce | 885498813470bd33d6c6227854a4ce06a2de5086be072c8f7a8d69e6b4228225 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTdBOjNFMTM5ODpBRjVEM0Q6RUFEOTVEOjZCMDA0OURDIiwidmlzaXRvcl9pZCI6IjE5MjE5MjU3NzE0MzQxNTAzNjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 81219e91c90c9d10c5e8f5fce676d5f2447c9fb69c36d8a395591fab9725a8ec |
| hovercard-subject-tag | issue:4758674212 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/cppwinrt/1602/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1e206bb3a1c20fc3cbac65d19e93acf153094e1855b94793f5abf87d45f9509d/microsoft/cppwinrt/issues/1602 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1e206bb3a1c20fc3cbac65d19e93acf153094e1855b94793f5abf87d45f9509d/microsoft/cppwinrt/issues/1602 |
| og:image:alt | Version 3.0.260520.1 Summary When we use CppWinRTModuleInclude, we expect that we can write the module which we need so that we do not need to generate everything. But when we add it, we will find ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wherewhere |
| hostname | github.com |
| expected-hostname | github.com |
| None | f9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/cppwinrt git https://github.com/microsoft/cppwinrt.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 68223326 |
| octolytics-dimension-repository_nwo | microsoft/cppwinrt |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 68223326 |
| octolytics-dimension-repository_network_root_nwo | microsoft/cppwinrt |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b27c5dde30676028abd5c5fc53ce5c9b625f8281 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width