File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
eng/pipelines/common/templates/steps Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -67,18 +67,12 @@ steps:
6767 $parent_xpath = '/Project/ItemGroup/PackageReference[@Include="Microsoft.Data.SqlClient"]'
6868 $node = $Doc.SelectSingleNode($parent_xpath)
6969
70- if($node -ne $null){
71- $node.Version="${{parameters.nugetPackageVersion }}"
72- }
73- else{
70+ if($node -eq $null){
7471 $packagerefnode = $doc.createelement("packagereference")
7572 $value = $doc.selectsinglenode('/project/itemgroup/projectreference')
7673 $attrinclude = $doc.createattribute("include")
7774 $attrinclude.value = "microsoft.data.sqlclient"
78- $attrversion = $doc.createattribute("version")
79- $attrversion.value = "${{parameters.nugetPackageVersion }}"
8075 $packagerefnode.attributes.append($attrinclude)
81- $packagerefnode.attributes.append($attrversion)
8276 $parentNode.AppendChild($packageRefNode)
8377 }
8478
You can’t perform that action at this time.
0 commit comments