NuGet/NuGetGallery — pull request #1323 by anurse (2013-07-15 18:49:05+00:00)
Title: Fix #1319 by changing display of Portable Class Library frameworks to include profiles

This issue was caused by the code for processing Framework Names into "Friendly" Display Names having an inverted condition. Instead of adding the Profile field to the name, if present, it only adds it if NOT present :).

Along with this, I've added some code to pretty-print Portable Class Library frameworks a little better:

![Pretty-Print PCLs](https://f.cloud.github.com/assets/7574/799923/f872c0d8-ed7e-11e2-9612-f31db8dca3e5.PNG)

Also, in keeping with our practice of being as tolerant of bad data as possible, I added errors checking so that corrupt dependencies won't cause a WSOD (White Screen of Death ;)). Instead, it will silently log the exception and not show dependencies at all. The **owners** will see this message so they can follow up with us (in the long term we should notify the gallery operators, but this will do as a quick fix, it's highly unlikely to get in this scenario again):

![Error Message](https://f.cloud.github.com/assets/7574/799941/21564f6a-ed7f-11e2-8cf4-636af3476c0d.png)