Skip to main content

GithubReleaseAsset class

Namespace: Velopack.Sources

Describes a asset (file) uploaded to a GitHub release.

public class GithubReleaseAsset

Constructors​

ConstructorSummary
GithubReleaseAsset

GithubReleaseAsset()​

public GithubReleaseAsset()

Properties​

PropertySummary
UrlThe asset URL for this release asset. Requests to this URL will use API
BrowserDownloadUrlThe browser URL for this release asset. This does not use API quota,
NameThe name of this release asset.
ContentTypeThe mime type of this release asset (as detected by GitHub).

Url​

public string? Url { get; set; }

The asset URL for this release asset. Requests to this URL will use API quota and return JSON unless the 'Accept' header is "application/octet-stream".

BrowserDownloadUrl​

public string? BrowserDownloadUrl { get; set; }

The browser URL for this release asset. This does not use API quota, however this URL only works for public repositories. If downloading assets from a private repository, the Url property must be used with an appropriate access token.

Name​

public string? Name { get; set; }

The name of this release asset.

ContentType​

public string? ContentType { get; set; }

The mime type of this release asset (as detected by GitHub).


Generated from Velopack 1.2.0