How to exclude an idl file in a C++ winRt project. Is it possible to exclude an idl file based on Configuration condition?
Seems C++ WinRt project grabs all idl files in the project folder and build them even if they are not declared ( using ) in vcxproj.
Reproducible example
Create a C++ WinRt project
In the project folder manually create an idl file called sample.idl using file explorer.
Version
2.0.221121.5
Summary
How to exclude an idl file in a C++ winRt project. Is it possible to exclude an idl file based on Configuration condition? Seems C++ WinRt project grabs all idl files in the project folder and build them even if they are not declared ( using) in vcxproj.
Reproducible example
Note: this is not imported/added in VS and no Midl import declaration for this idl file in project vcxproj file.
Expected behavior
Project not supposed to build sample.idl as it is not imported.
Actual behavior
Builds every idl available in the folder even if they are not defined in vcxproj file
Additional comments
No response