refact
This commit is contained in:
16
src/isnd/Helpers/NuspecCoreReaderHelpers.cs
Normal file
16
src/isnd/Helpers/NuspecCoreReaderHelpers.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System.Linq;
|
||||
using System.Xml.Linq;
|
||||
using NuGet.Packaging.Core;
|
||||
|
||||
namespace isn.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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user