C# 클래스 NugetForUnity.NugetPackageSource

Represents a NuGet Package Source (a "server").
파일 보기 프로젝트 열기: GlitchEnzo/NuGetForUnity 1 사용 예제들

공개 메소드들

메소드 설명
GetSpecificPackage ( NugetPackageIdentifier package ) : NugetPackage

Gets a NugetPackage from the NuGet server that matches (or is in range of) the NugetPackageIdentifier given. If an exact match isn't found, it selects the next closest version available.

GetUpdates ( IEnumerable installedPackages, bool includePrerelease = false, bool includeAllVersions = false, string targetFrameworks = "", string versionContraints = "" ) : List

Queries the source with the given list of installed packages to get any updates that are available.

NugetPackageSource ( string name, string path ) : System.Collections.Generic

Initializes a new instance of the NugetPackageSource class.

Search ( string searchTerm = "", bool includeAllVersions = false, bool includePrerelease = false, int numberToGet = 15, int numberToSkip ) : List

Gets a list of NuGetPackages from this package source. This allows searching for partial IDs or even the empty string (the default) to list ALL packages. NOTE: See the functions and parameters defined here: https://www.nuget.org/api/v2/$metadata

비공개 메소드들

메소드 설명
GetLocalPackages ( string searchTerm = "", bool includeAllVersions = false, bool includePrerelease = false, int numberToGet = 15, int numberToSkip ) : List

Gets a list of all available packages from a local source (not a web server) that match the given filters.

GetLocalUpdates ( IEnumerable installedPackages, bool includePrerelease = false, bool includeAllVersions = false ) : List

Gets a list of available packages from a local source (not a web server) that are upgrades for the given list of installed packages.

GetPackagesFromUrl ( string url ) : List

Builds a list of NugetPackages from the XML returned from the HTTP GET request issued at the given URL. Note that NuGet uses an Atom-feed (XML Syndicaton) superset called OData. See here http://www.odata.org/documentation/odata-version-2-0/uri-conventions/

메소드 상세

GetSpecificPackage() 공개 메소드

Gets a NugetPackage from the NuGet server that matches (or is in range of) the NugetPackageIdentifier given. If an exact match isn't found, it selects the next closest version available.
public GetSpecificPackage ( NugetPackageIdentifier package ) : NugetPackage
package NugetPackageIdentifier The containing the ID and Version of the package to get.
리턴 NugetPackage

GetUpdates() 공개 메소드

Queries the source with the given list of installed packages to get any updates that are available.
public GetUpdates ( IEnumerable installedPackages, bool includePrerelease = false, bool includeAllVersions = false, string targetFrameworks = "", string versionContraints = "" ) : List
installedPackages IEnumerable The list of currently installed packages.
includePrerelease bool True to include prerelease packages (alpha, beta, etc).
includeAllVersions bool True to include older versions that are not the latest version.
targetFrameworks string The specific frameworks to target?
versionContraints string The version constraints?
리턴 List

NugetPackageSource() 공개 메소드

Initializes a new instance of the NugetPackageSource class.
public NugetPackageSource ( string name, string path ) : System.Collections.Generic
name string The name of the package source.
path string The path to the package source.
리턴 System.Collections.Generic

Search() 공개 메소드

Gets a list of NuGetPackages from this package source. This allows searching for partial IDs or even the empty string (the default) to list ALL packages. NOTE: See the functions and parameters defined here: https://www.nuget.org/api/v2/$metadata
public Search ( string searchTerm = "", bool includeAllVersions = false, bool includePrerelease = false, int numberToGet = 15, int numberToSkip ) : List
searchTerm string The search term to use to filter packages. Defaults to the empty string.
includeAllVersions bool True to include older versions that are not the latest version.
includePrerelease bool True to include prerelease packages (alpha, beta, etc).
numberToGet int The number of packages to fetch.
numberToSkip int The number of packages to skip before fetching.
리턴 List