-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix package id parsing and avoid NPE when feed is missing some propertie... #776
Conversation
…ties Nuget feed's <m:properties> doesn't contain a <d:Id>, the id is instead found in the <entry>'s <title> element. The <id> element in a nuget feed contains something like "http://www.nuget.org/api/v2/Packages(Id='_Atrico.Lib.CommonAssemblyInfo',Version='1.0.0.0')" which is not what we want here. Some nuget package sources omit some elements, for example ProGet doesn't report the Language element for handle missing elements by returning an empty string.
Hey that sounds good. But we should use id tag whenever it is there |
I haven't seen any feeds that contain an d:Id tag, the |
Fyi, just in the process of putting together a testcase |
There isn't an F# tests project from what I can see, am I okay to add one? |
Yep.
|
Had difficulty getting a new test project to run as part of the main build so have stuck the new test in the I'm remain a little confused as to how the code that was there before worked. Have I done something dumb like reference the wrong stream? It appears to line up with the example in |
Fix package id parsing and avoid NPE when feed is missing some propertie...
thanks for this. |
...s
Nuget feed's <m:properties> doesn't contain a <d:Id>, the id is instead found in the 's <title> element.
The element in a nuget feed contains something like "http://www.nuget.org/api/v2/Packages(Id='_Atrico.Lib.CommonAssemblyInfo',Version='1.0.0.0')" which is not what we want here.
Some nuget package sources omit some elements, for example ProGet doesn't report the Language element for handle missing elements by returning an empty string.