Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion modules/vstudio/vs2005_dotnetbase.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,24 @@
_p(1,'<PropertyGroup>')
local cfg = project.getfirstconfig(prj)
p.callArray(dotnetbase.elements.projectProperties, cfg)

dotnetbase.projectConfigurations(prj)

_p(1,'</PropertyGroup>')
end


--
-- Write the available configurations to have correct configuration mapping on vs2022 format and later.
--
function dotnetbase.projectConfigurations(prj)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That function is never called.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i know, i don't kown where to put so it gets placed in the primary property group.

if _ACTION >= "vs2022" and #prj._cfglist > 0 then
_p(2,'<Configurations>')
for prjcfg in project.eachconfig(prj) do
_p(3,'%s;',prjcfg.shortname)
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonder if we can use something like table.implode(arr, "before", "after", "between") to avoid extra ';'.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

il give that a try now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it worked but i can't figure out how to make it auto generate in the initial property group

_p(2,'</Configurations>')
end
end
--
-- Write out the settings for the project configurations.
--
Expand Down