Skip to content

Commit b111e26

Browse files
committed
make sure we update all dependencies not just the first
1 parent c242849 commit b111e26

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

build/scripts/Releasing.fsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,12 @@ module Release =
112112

113113
match p with
114114
| Project Nest ->
115-
let esDep = doc.XPathSelectElement("/x:package/x:metadata//x:dependency[@id='Elasticsearch.Net']", nsManager);
116-
let esDep = esDep.Attribute(xName "id");
117-
esDep.Value <- sprintf "Elasticsearch.Net.v%s" currentMajorVersion
118-
rewriteDllFile p.Name
115+
let esDeps = doc.XPathSelectElements("/x:package/x:metadata//x:dependency[@id='Elasticsearch.Net']", nsManager);
116+
esDeps |> Seq.iter (fun e ->
117+
let esDep = e.Attribute(xName "id");
118+
esDep.Value <- sprintf "Elasticsearch.Net.v%s" currentMajorVersion
119+
rewriteDllFile p.Name
120+
)
119121
| Project ElasticsearchNet ->
120122
rewriteDllFile p.Name
121123
ignore()

0 commit comments

Comments
 (0)