Table of Contents

Class PackageReferenceSet

Namespace
NuGet.Packaging
Assembly
Chocolatey.NuGet.Packaging.dll
public class PackageReferenceSet
Inheritance
PackageReferenceSet
Inherited Members

Constructors

PackageReferenceSet(NuGetFramework, IEnumerable<string>)

Creates a new Package Reference Set

public PackageReferenceSet(NuGetFramework targetFramework, IEnumerable<string> references)

Parameters

targetFramework NuGetFramework

The target framework to use.

references IEnumerable<string>

IEnumerable set of string references

PackageReferenceSet(IEnumerable<string>)

Creates a new Package Reference Set

public PackageReferenceSet(IEnumerable<string> references)

Parameters

references IEnumerable<string>

IEnumerable set of string references

PackageReferenceSet(string, IEnumerable<string>)

Creates a new Package Reference Set

public PackageReferenceSet(string targetFramework, IEnumerable<string> references)

Parameters

targetFramework string

The target framework to use, pass Any for AnyFramework. Does not allow null.

references IEnumerable<string>

IEnumerable set of string references

Properties

References

public IReadOnlyCollection<string> References { get; }

Property Value

IReadOnlyCollection<string>

TargetFramework

public NuGetFramework TargetFramework { get; }

Property Value

NuGetFramework

Methods

Validate()

public IEnumerable<string> Validate()

Returns

IEnumerable<string>