premake-core icon indicating copy to clipboard operation
premake-core copied to clipboard

vpath does not create <Extensions> line in vcxproj.filters files

Open winsvu opened this issue 5 years ago • 2 comments

What's your question? Is there any way (if there is any) that vpath generates, inside vcxproj.filters, the following line?

<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>

Anything else we should know? I saw this comment on the source code (vs2010_vcxproj_filters.lua), so I don't know if it is implemented yet. It would be nice to have this line because at least in VS2019 it shows the files in the filters (virtual directories)

--
-- The first portion of the filters file assigns unique IDs to each
-- directory or virtual group. Would be cool if we could automatically
-- map vpaths like "**.h" to an <Extensions>h</Extensions> element.
--

winsvu avatar Oct 23 '20 01:10 winsvu

There isn't any way to do that currently.

samsinsane avatar Oct 23 '20 02:10 samsinsane

Hmm…I guess we'd need to path.getbasename() on the virtual path and see if ends with "*" or "**", and then roll those up?

starkos avatar Oct 28 '20 13:10 starkos