Inedo.AssetDirectories Library
  • 24 Sep 2021
  • 1 Minute to read
  • Dark
    Light
  • PDF

Inedo.AssetDirectories Library

  • Dark
    Light
  • PDF

Article Summary

The Inedo.AssetDirectories library is available as a simpler alternative to the Asset Directory API for .NET projects.

Example: Downloading a File

var client = new AssetDirectoryClient(endpointUrl: "https://my.proget/endpoints/<AssetDirectoryName>", apiKey: "<API KEY>");

// Download the archive.zip file to C:\temp\archive.zip.
using var stream = await client.DownloadFileAsync("archive.zip");
using var dest = File.Create(@"C:\temp\archive.zip");
await stream.CopyToAsync(dest);

More Information

See the Inedo.AssetDirectories project page on GitHub for more examples. Reference the Inedo.AssetDirectories NuGet package to use the library in your project.


Was this article helpful?