Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How can i get the release notes of a NuGet package with the official SDK in C#

$
0
0

I need to get the Release Notes stored in the metadata. This code seems to be able to read the metadata, however i dont know how to get to the release notes.

using NuGet.Common;using NuGet.Protocol;using NuGet.Protocol.Core.Types;using NuGet.Versioning;ILogger logger = NullLogger.Instance;CancellationToken cancellationToken = CancellationToken.None;SourceCacheContext cache = new SourceCacheContext();SourceRepository repository = Repository.Factory.GetCoreV3("https://api.nuget.org/v3/index.json");PackageMetadataResource resource = await repository.GetResourceAsync<PackageMetadataResource>();IEnumerable<IPackageSearchMetadata> packages = await resource.GetMetadataAsync("Flexygo",    includePrerelease: true,    includeUnlisted: false,    cache,    logger,    cancellationToken);

i am trying to get a String with the release notes using only the official SDK


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>