Merge pull request #239 from Blizzard/improve-determinism

improve determinism
This commit is contained in:
starkos 2015-09-15 18:30:23 -04:00
commit 158a80c696
2 changed files with 11 additions and 0 deletions

View File

@ -878,6 +878,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