Filters always have to use \ regardless of target platform.
p.push()
tree.traverse(tr, {
onbranch = function(node, depth)
- p.push('<Filter Include="%s">', path.translate(node.path))
+ p.push('<Filter Include="%s">', path.translate(node.path, '\\'))
p.w('<UniqueIdentifier>{%s}</UniqueIdentifier>', os.uuid(node.path))
p.pop('</Filter>')
end
for _, file in ipairs(files) do
if file.parent.path then
p.push('<%s Include=\"%s\">', tag, path.translate(file.relpath))
- p.w('<Filter>%s</Filter>', path.translate(file.parent.path))
+ p.w('<Filter>%s</Filter>', path.translate(file.parent.path, '\\'))
p.pop('</%s>', tag)
else
p.w('<%s Include=\"%s\" />', tag, path.translate(file.relpath))
