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
stringName of the library.
licenseShortIdentifier
stringLicense short identifier. Usually the SPDX tag (https://spdx.org/licenses/).
copyright
stringCopyright of the library.
Properties
Copyright
Gets the copyright.
public string Copyright { get; }
Property Value
LibraryName
Gets the library name.
public string LibraryName { get; }
Property Value
LicenseShortIdentifier
Gets the license short identifier. Usually the SPDX tag (https://spdx.org/licenses/).
public string LicenseShortIdentifier { get; }
Property Value
ProjectUrl
Gets or sets the URL to the project.
public string ProjectUrl { get; set; }