Under the <ent" />
开发者

Finding a download URL from the NuGet OData feed

开发者 https://www.devze.com 2023-03-03 20:03 出处:网络
What\'s the trick fo开发者_StackOverflowr deriving a download URL given an entry in the Packages table in the OData data set?< content type=\"application/zip\" src=\"SOME-URL\" /> Under the <ent

What's the trick fo开发者_StackOverflowr deriving a download URL given an entry in the Packages table in the OData data set?


< content type="application/zip" src="SOME-URL" />


Under the <entry/> node, look for a <content/> node which contains 2 attributes type and src. The src attribute contains the download url. You could use LINQ to XML to get it. Seems easy, right? Oh, and remember to append an XNamespace to the XName when using LINQ to XML to query the nodes.

0

精彩评论

暂无评论...
验证码 换一张
取 消