nuget

package
v0.15.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachNugetPositions

func AttachNugetPositions(g *sdk.Graph, projectDir string)

AttachNugetPositions wires .csproj / packages.lock.json line numbers into a nuget-resolved graph.

Types

type Detector

type Detector struct {
	Logger     *zap.Logger
	WorkingDir string
	Fallback   sdk.Detector
}

Detector resolves NuGet dependency graphs from committed NuGet manifests.

func (Detector) Applicable

func (d Detector) Applicable(ctx context.Context, req sdk.DetectionRequest) (bool, error)

Applicable reports whether a NuGet lockfile, legacy packages.config, or project file is present.

func (Detector) Descriptor

func (d Detector) Descriptor() sdk.DetectorDescriptor

Descriptor describes the NuGet detector.

func (Detector) FallbackDetector

func (d Detector) FallbackDetector() sdk.Detector

FallbackDetector returns the configured fallback detector.

func (Detector) PackageManagerSupport

func (d Detector) PackageManagerSupport() []sdk.PackageManagerSupport

PackageManagerSupport returns NuGet package-manager discovery metadata.

func (Detector) Ready

Ready reports whether the detector can parse committed NuGet files.

func (Detector) ResolveGraph

ResolveGraph resolves a NuGet dependency graph.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL