Exclude empty C# user file property groups
This commit is contained in:
parent
a8a2595d79
commit
32a81cf19e
@ -27,14 +27,20 @@
|
|||||||
_p(' </PropertyGroup>')
|
_p(' </PropertyGroup>')
|
||||||
|
|
||||||
for cfg in project.eachconfig(prj) do
|
for cfg in project.eachconfig(prj) do
|
||||||
_p(1,'<PropertyGroup %s>', cs2005.condition(cfg))
|
local contents = p.capture(function()
|
||||||
cs2005.debugsettings(cfg)
|
cs2005.debugsettings(cfg)
|
||||||
_p(1,'</PropertyGroup>')
|
end)
|
||||||
|
|
||||||
|
if #contents > 0 then
|
||||||
|
_p(1,'<PropertyGroup %s>', cs2005.condition(cfg))
|
||||||
|
p.outln(contents)
|
||||||
|
_p(1,'</PropertyGroup>')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
_p('</Project>')
|
_p('</Project>')
|
||||||
end
|
end
|
||||||
|
|
||||||
function cs2005.debugsettings(cfg)
|
function cs2005.debugsettings(cfg)
|
||||||
cs2005.localDebuggerCommandArguments(cfg)
|
cs2005.localDebuggerCommandArguments(cfg)
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user