Files
isn/src/isnd/Helpers/NuspecCoreReaderHelpers.cs
Paul Schneider 504f431937 refact
2021-08-15 19:09:01 +01:00

16 lines
397 B
C#

using System.Linq;
using System.Xml.Linq;
using NuGet.Packaging.Core;
namespace isnd.Helpers
{
public static class NuspecCoreReaderHelpers
{
public static string GetDescription(this NuspecCoreReader reader)
{
var meta = reader.GetMetadata();
var kv = meta.SingleOrDefault(i => i.Key == "description");
return kv.Value;
}
}
}