11 references to LicenseMetadata
Microsoft.DotNet.Build.Tasks.Packaging (1)
GenerateNuSpec.cs (1)
217manifestMetadata.LicenseMetadata = new LicenseMetadata(
NuGet.Build.Tasks.Pack (2)
PackTaskLogic.cs (2)
282return new LicenseMetadata( 309return new LicenseMetadata(
NuGet.CommandLine.XPlat (1)
_generated\8\PackageSearchJsonContext.LicenseMetadata.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Packaging.LicenseMetadata((global::NuGet.Packaging.LicenseType)args[0], (string)args[1], (global::NuGet.Packaging.Licenses.NuGetLicenseExpression)args[2], (global::System.Collections.Generic.IReadOnlyList<string>)args[3], (global::System.Version)args[4]),
NuGet.Packaging (6)
NuspecReader.cs (4)
505return new LicenseMetadata(type: licenseType, license: license!, expression: expression, warningsAndErrors: errors, version: version); 515return new LicenseMetadata(type: licenseType, license: license!, expression: null, warningsAndErrors: errors, version: version); 531return new LicenseMetadata(type: licenseType, license: license!, expression: null, warningsAndErrors: errors, version: version); 535return new LicenseMetadata(type: licenseType, license: license!, expression: null, warningsAndErrors: errors, version: version);
PackageCreation\Authoring\ManifestReader.cs (2)
222return new LicenseMetadata(licenseType, license!, expression, warningsAndErrors: null, version: version); 237return new LicenseMetadata(type: licenseType, license: license!, expression: null, warningsAndErrors: null, version: LicenseMetadata.EmptyVersion);
NuGet.Protocol (1)
Model\PackageSearchMetadata.cs (1)
221return new LicenseMetadata(LicenseType.Expression, license: trimmedLicenseExpression, expression: parsedExpression, warningsAndErrors: errors, version: effectiveVersion);