You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: having only non-WinRT .idl files in a project causes MdMerge to fail #1509
Project build fails with: MDMERGE : error MDM2025: The input directory or file C:\Users\Bugaleb\source\repos\CppWinRtTest" -o CppWinRtTest\x64\Debug\Merged -partial is not valid.
Additional comments
The issue seems to be with the GetCppWinRTMdMergeInputs target doing this:
basically, unconditionally adding all Midl items to _MdMergeInputs.
A potential solution would be to have a Midl.ExcludedFromWinMD metadata or something similar, though since CppWinRTModernIDL is a global property anyway, it can probably be used here as well to avoid attempting to merge anything.
A potential workaround is to add the following target in the project:
Activity
Fix microsoft#1509 by honoring `CppWinRTModernIDL` in `CppWinRTSetMid…
github-actions commentedon Sep 27, 2025
This issue is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days.