Skip to content

Commit a89ee55

Browse files
Remove version attribute
1 parent 049c67c commit a89ee55

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

eng/pipelines/common/templates/steps/update-nuget-config-local-feed-step.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)