Skip to content

NuGetPackageAnalyzer

Namespace: Dotsider.Core.Analysis

Assembly: Dotsider.Core.dll

Opens and analyzes a NuGet package (.nupkg) file. Reads package metadata from .nuspec and lists all contents.

public sealed class NuGetPackageAnalyzer : IDisposable

ObjectNuGetPackageAnalyzer

Opens and analyzes the specified NuGet package file.

Parameters:

  • nupkgPath (String): Path to the .nupkg file.
public NuGetPackageAnalyzer(string nupkgPath)

The package authors from the .nuspec manifest, or null.

Returns: String

public string? Authors { get; }

The package description from the .nuspec manifest, or null.

Returns: String

public string? Description { get; }

Only the DLL files in the package.

Returns: IReadOnlyList<NuGetFileEntry>

public IReadOnlyList<NuGetFileEntry> DllFiles { get; }

The file name of the .nupkg file.

Returns: String

public string FileName { get; }

The full path to the .nupkg file.

Returns: String

public string FilePath { get; }

All files in the package.

Returns: IReadOnlyList<NuGetFileEntry>

public IReadOnlyList<NuGetFileEntry> Files { get; }

The NuGet package ID from the .nuspec manifest, or null.

Returns: String

public string? PackageId { get; }

The package version from the .nuspec manifest, or null.

Returns: String

public string? PackageVersion { get; }

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Extracts a DLL from the package to a temp file and creates an AssemblyAnalyzer.

Parameters:

Returns: AssemblyAnalyzer

public AssemblyAnalyzer OpenDll(NuGetFileEntry entry)