Table of Contents

Class UsesLicenseAttribute

Namespace
Loehnert.Lisrt.ThirdPartyLicenses.Attributes
Assembly
Loehnert.Lisrt.dll

Specifies, that the marked assembly uses a third party library.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class UsesLicenseAttribute : Attribute, _Attribute
Inheritance
UsesLicenseAttribute
Implements
Inherited Members

Examples

This example adds the Caliburn.Micro framework as third party library. Add this code to your AssemblyInfo.cs file.

[assembly: UsesLicense(
    "Caliburn.Micro",
    "MIT",
    "Copyright (c) 2010 Blue Spire Consulting, Inc.",
    ProjectUrl = "https://caliburnmicro.com/")]

Constructors

UsesLicenseAttribute(string, string, string)

Initializes a new instance of the UsesLicenseAttribute class.

public UsesLicenseAttribute(string libraryName, string licenseShortIdentifier, string copyright)

Parameters

libraryName string

Name of the library.

licenseShortIdentifier string

License short identifier. Usually the SPDX tag (https://spdx.org/licenses/).

copyright string

Copyright of the library.

Properties

Gets the copyright.

public string Copyright { get; }

Property Value

string

LibraryName

Gets the library name.

public string LibraryName { get; }

Property Value

string

LicenseShortIdentifier

Gets the license short identifier. Usually the SPDX tag (https://spdx.org/licenses/).

public string LicenseShortIdentifier { get; }

Property Value

string

ProjectUrl

Gets or sets the URL to the project.

public string ProjectUrl { get; set; }

Property Value

string

See Also