Exclude empty C# user file property groups

This commit is contained in:
Jason Perkins 2015-01-26 17:04:29 -05:00
parent a8a2595d79
commit 32a81cf19e

View File

@ -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