Skip to content

Commit bb06cd1

Browse files
author
Beernaert Robbe
committed
table works but needs to be placed in the initial property group
1 parent 9c605c8 commit bb06cd1

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

modules/vstudio/vs2005_dotnetbase.lua

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,22 +82,15 @@
8282
_p(1,'<PropertyGroup>')
8383
local cfg = project.getfirstconfig(prj)
8484
p.callArray(dotnetbase.elements.projectProperties, cfg)
85-
86-
dotnetbase.projectConfigurations(prj)
87-
8885
_p(1,'</PropertyGroup>')
8986
end
9087

9188
--
9289
-- Write the available configurations to have correct configuration mapping on vs2022 format and later.
9390
--
9491
function dotnetbase.projectConfigurations(prj)
95-
if _ACTION >= "vs2022" and #prj._cfglist > 0 then
96-
_p(2,'<Configurations>')
97-
for prjcfg in project.eachconfig(prj) do
98-
_p(3,'%s;',prjcfg.shortname)
99-
end
100-
_p(2,'</Configurations>')
92+
if _ACTION >= "vs2022" and #prj.configurations > 0 then
93+
_p(2,'<Configurations>%s</Configurations>',table.implode(prj.configurations,"", "", ";"))
10194
end
10295
end
10396
--

0 commit comments

Comments
 (0)