improve determinism
This commit is contained in:
parent
aeca0bb3fd
commit
66358a2880
@ -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))
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user