CsWinRT icon indicating copy to clipboard operation
CsWinRT copied to clipboard

cswinrt.exe fails on certain -exclude filters

Open j0shuams opened this issue 4 years ago • 1 comments

Describe the bug The bug is an "invalid comparator" in the sorting of include/excludes, done at the start of cswinrt.exe

To Reproduce Build cswinrt vcxproj for Debug, and call it on an .rsp file like this: cswinrt.txt

Note, this "rsp" file has two fake namespaces Windows.UI.JJJJ and Windows.UI.MMMM. Debugging into the cswinrt tool will show that JJJJ is a known "exclude" but it will lose track of MMMM, and instead of a blank "include"; blank meaning the namespace is ""

Expected behavior CsWinRT tool generates projection

Version Info 1.3.3

j0shuams avatar Sep 15 '21 21:09 j0shuams

Potential bug in our comparator when left hand side and right hand side are equal. It should return false I think in that scenario, but for excludes it can return true.

manodasanW avatar Sep 15 '21 21:09 manodasanW