C# Class Google.Apis.Utils.NuGetUtilities

NuGet utilities class which support publishing to NuGet main repository, creating a local NuGet package, etc.
Show file Open project: Gainedge/BetterExplorer

Public Properties

Property Type Description
LocalNuGetPackageFolder string

Public Methods

Method Description
CreateLocalNupkgFile ( string nuspecFilePath, string directory ) : string

Creates a local nupkg file, and stores it in a local folder (LocalNuGetPackageFolder).

DoesNugetPackageExist ( string packageName, string version ) : bool

Returns true if a NuGet package already exists in the main NuGet repository for the input name and version.

PublishToNuget ( string packagePath, string nugetApiKey ) : void

Publishes to the NuGet main repository.

Private Methods

Method Description
NuGetUtilities ( ) : System

Method Details

CreateLocalNupkgFile() public static method

Creates a local nupkg file, and stores it in a local folder (LocalNuGetPackageFolder).
public static CreateLocalNupkgFile ( string nuspecFilePath, string directory ) : string
nuspecFilePath string
directory string
return string

DoesNugetPackageExist() public static method

Returns true if a NuGet package already exists in the main NuGet repository for the input name and version.
public static DoesNugetPackageExist ( string packageName, string version ) : bool
packageName string
version string
return bool

PublishToNuget() public static method

Publishes to the NuGet main repository.
public static PublishToNuget ( string packagePath, string nugetApiKey ) : void
packagePath string
nugetApiKey string
return void

Property Details

LocalNuGetPackageFolder public static property

The local NuGet folder which stores local NuGet packages.
public static string LocalNuGetPackageFolder
return string