Files
isn/src/appled/Helpers/NuspecCoreReaderHelpers.cs
Paul Schneider 5de53a3cba rebrand
2021-06-27 01:53:00 +01:00

16 lines
403 B
C#

using System.Linq;
using System.Xml.Linq;
using NuGet.Packaging.Core;
namespace nuget_host.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;
}
}
}