If I create a list of Items in a MSBuild file is the order of the items maintained when passed to a task?
E.g. a list of database script files is specified in an ItemGroup. I then feed this ItemGroup to a custom task? Will the order be guaranteed or could the order change?
Yes, MSBuild maintains the order of a list of items that have the same item type within an ItemGroup. (For example, the order of all the “<Compile Include=”…”>” in a .fsproj matters, as it specifies the order of files in the F# project file.)