NuGet Module
Contains helper functions and task which allow to inspect, create and publish NuGet packages. There is also a tutorial about nuget package creating available.
Types
Type | Description |
Functions and values
Function or value | Description |
Full Usage:
GetPackageVersion deploymentsDir package
Parameters:
string
-
The deployment directory to look into
package : string
-
The package id to look for
Returns: string
|
|
Full Usage:
NuGet setParams nuspecOrProjectFile
Parameters:
NuGetParams -> NuGetParams
-
Function used to manipulate the default NuGet parameters.
nuspecOrProjectFile : string
-
The .nuspec file name.
|
Creates a new NuGet package, and optionally publishes it. Template parameter substitution is performed when passing a .nuspec
|
|
|
Full Usage:
NuGetPack setParams nuspecOrProjectFile
Parameters:
NuGetParams -> NuGetParams
-
Function used to manipulate the default NuGet parameters.
nuspecOrProjectFile : string
-
The .nuspec or project file name.
|
Creates a new NuGet package based on the given .nuspec or project file. Template parameter substitution is performed when passing a .nuspec
|
Full Usage:
NuGetPackDirectly setParams nuspecOrProjectFile
Parameters:
NuGetParams -> NuGetParams
-
Function used to manipulate the default NuGet parameters.
nuspecOrProjectFile : string
-
The .nuspec or project file name.
|
Creates a new NuGet package based on the given .nuspec or project file. The .nuspec / projectfile is passed as-is (no templating is performed)
|
Full Usage:
NuGetPublish setParams
Parameters:
NuGetParams -> NuGetParams
-
Function used to manipulate the default NuGet parameters.
|
|
Full Usage:
RequireExactly version
Parameters:
string
-
The exact version to require
Returns: string
|
|
Full Usage:
RequireRange breakingPoint version
Parameters:
BreakingPoint
-
The breaking point for version range. See BreakingPoint type
version : string
-
The version to use to find the range
Returns: string
|
|
Full Usage:
galleryV3
Returns: string
|
|
Full Usage:
getDependencies packagesFile
Parameters:
string
-
The packages file to use
Returns: NuGetDependency list
|
|
Full Usage:
getLatestPackage repoUrl packageName
Parameters:
string
-
Query endpoint of NuGet search service
packageName : string
-
The package to get
Returns: NugetPackageInfo
|
|
Full Usage:
getNuspecProperties nuspec
Parameters:
string
-
The .nuspec file content.
Returns: NuSpecPackage
|
|
Full Usage:
getPackage repoUrl packageName version
Parameters:
string
-
Query endpoint of NuGet search service
packageName : string
-
The package to get
version : string
-
The specific version to get
Returns: NugetPackageInfo
|
|
Full Usage:
searchByTitle repoUrl packageName
Parameters:
string
-
Query endpoint of NuGet search service
packageName : string
-
The package to search for
Returns: NugetPackageInfo list
|
|
Type extensions
Type extension | Description |
Full Usage:
this.DownloadData
Parameters:
string
Returns: byte[]
|
Extended Type:
|
|
Extended Type:
|
|
Extended Type:
|
|
Extended Type:
|
Full Usage:
this.DownloadFile
Parameters:
string
filePath : string
|
Extended Type:
|
|
Extended Type:
|
|
Extended Type:
|
Full Usage:
this.DownloadFileTaskAsync
Parameters:
string
filePath : string
Returns: Task<unit>
|
Extended Type:
|
Full Usage:
this.DownloadString
Parameters:
string
Returns: string
|
Extended Type:
|
|
Extended Type:
|
|
Extended Type:
|
|
Extended Type:
|
Full Usage:
this.UploadFileAsMultipart
Parameters:
Uri
filename : string
Returns: HttpResponseMessage
|
Extended Type:
|