C# Class NugetForUnity.NuspecFile

Represents a .nuspec file used to store metadata for a NuGet package.
ファイルを表示 Open project: GlitchEnzo/NuGetForUnity Class Usage Examples

Public Methods

Method Description
FromNupkgFile ( string nupkgFilepath ) : NuspecFile

Loads the .nuspec file inside the .nupkg file at the given filepath.

Load ( Stream stream ) : NuspecFile

Loads a .nuspec file inside the given stream.

Load ( System.Xml.Linq.XDocument nuspecDocument ) : NuspecFile

Loads a .nuspec file inside the given XDocument.

Load ( string filePath ) : NuspecFile

Loads a .nuspec file at the given filepath.

Save ( string filePath ) : void

Saves a NuspecFile to the given filepath, automatically overwriting.

Method Details

FromNupkgFile() public static method

Loads the .nuspec file inside the .nupkg file at the given filepath.
public static FromNupkgFile ( string nupkgFilepath ) : NuspecFile
nupkgFilepath string The filepath to the .nupkg file to load.
return NuspecFile

Load() public static method

Loads a .nuspec file inside the given stream.
public static Load ( Stream stream ) : NuspecFile
stream System.IO.Stream The stream containing the .nuspec file to load.
return NuspecFile

Load() public static method

Loads a .nuspec file inside the given XDocument.
public static Load ( System.Xml.Linq.XDocument nuspecDocument ) : NuspecFile
nuspecDocument System.Xml.Linq.XDocument The .nuspec file as an .
return NuspecFile

Load() public static method

Loads a .nuspec file at the given filepath.
public static Load ( string filePath ) : NuspecFile
filePath string The full filepath to the .nuspec file to load.
return NuspecFile

Save() public method

Saves a NuspecFile to the given filepath, automatically overwriting.
public Save ( string filePath ) : void
filePath string The full filepath to the .nuspec file to save.
return void