ngh
This commit is contained in:
parent
48df937b7f
commit
445ea24dd2
4 changed files with 37 additions and 13 deletions
16
Helpers/NuspecCoreReaderHelpers.cs
Normal file
16
Helpers/NuspecCoreReaderHelpers.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue