timabell / ssrs-powershell-deploy

PowerShell scripts to deploy a SQL Server Reporting Services project (*.rptproj) to a Reporting Server
MIT License
75 stars 40 forks source link

Replaced Hardcoded ItemGroup Indexes #25

Open alc0der opened 6 years ago

alc0der commented 6 years ago

The order of ItemGroup for DataSet, DataSource, and Report can vary. I have replaced indexed ItemGroup with ItemGroups based on FirstChild name.

PavelSamoilenko commented 5 years ago

Thank you, @asakilan ! Works for me. I believe it should be merged. Very important addition.

robertoandrade commented 5 years ago

29 fixes this in a more elegant way using XML namespaces and looping through the elements regardless of how many are there and in what order.