Filters always have to use \ regardless of target platform.
This commit is contained in:
parent
dce5e604dc
commit
2916fc44b8
@ -57,7 +57,7 @@
|
||||
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
|
||||
@ -80,7 +80,7 @@
|
||||
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))
|
||||
|
Reference in New Issue
Block a user