msbuild - Wildcard pattern does not match literal dot? -
in targets file, have following item group:
<itemgroup> <mygroup include="$(msbuildthisfiledirectory)..\dist\**\*.*"> </mygroup> </itemgroup>
i want match files have extension (contain dot in name), pattern above matching files have no extension (e.g., readme). doing wrong?
you may in 2 steps :
<itemgroup> <tmp include="$(msbuildthisfiledirectory)..\dist\**\*.*"> </tmp> <mygroup include="@(tmp)" condition="'%(tmp.extension)' != ''" > </mygroup> </itemgroup> <message text="@(mygroup)" /> <message text="@(tmp)" />
Comments
Post a Comment