improve determinism

This commit is contained in:
Tom van Dijck 2015-07-13 17:34:22 -07:00
parent aeca0bb3fd
commit 66358a2880
2 changed files with 11 additions and 0 deletions

View File

@ -876,6 +876,11 @@
function m.projectReferences(prj)
local refs = project.getdependencies(prj)
if #refs > 0 then
-- sort dependencies by uuid.
table.sort(refs, function(a,b)
return a.uuid < b.uuid
end)
p.push('<ItemGroup>')
for _, ref in ipairs(refs) do
local relpath = vstudio.path(prj, vstudio.projectfile(ref))

View File

@ -152,6 +152,12 @@
function container.bakeChildren(self)
for class in container.eachChildClass(self.class) do
local children = self[class.pluralName]
-- sort children by name.
table.sort(children, function(a,b)
return a.name < b.name
end)
for i = 1, #children do
local ctx = container.bake(children[i])
children[i] = ctx