You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/tools/csproj.md
+40Lines changed: 40 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -205,9 +205,49 @@ Copyright details for the package.
205
205
### PackageRequireLicenseAcceptance
206
206
A Boolean value that specifies whether the client must prompt the consumer to accept the package license before installing the package. The default is `false`.
207
207
208
+
### PackageLicenseExpression
209
+
210
+
An SPDX license expression or path to a license file within the package, often shown in UI displays as well as nuget.org.
211
+
212
+
Here is the complete list of [SPDX license identifiers](https://spdx.org/licenses/). NuGet.org accepts only OSI or FSF approved licenses when using license type expression.
213
+
214
+
The exact syntax of the license expressions is described below in [ABNF](https://tools.ietf.org/html/rfc5234).
215
+
```cli
216
+
license-id = <short form license identifier from https://spdx.org/spdx-specification-21-web-version#h.luq9dgcle9mo>
217
+
218
+
license-exception-id = <short form license exception identifier from https://spdx.org/spdx-specification-21-web-version#h.ruv3yl8g6czd>
> Only one of `PackageLicenseExpression`, `PackageLicenseFile` and `PackageLicenseUrl` can be specified at a time.
233
+
234
+
### PackageLicenseFile
235
+
236
+
Path to a license file within the package if you are using a license that hasn’t been assigned an SPDX identifier, or it is a custom license (Otherwise `PackageLicenseExpression` is prefered)
237
+
238
+
> [!NOTE]
239
+
> Only one of `PackageLicenseExpression`, `PackageLicenseFile` and `PackageLicenseUrl` can be specified at a time.
240
+
208
241
### PackageLicenseUrl
242
+
243
+
> [!Important]
244
+
> PackageLicenseUrl is being deprecated. Use `PackageLicenseFile` or `PackageLicenseExpression` instead.
245
+
209
246
An URL to the license that is applicable to the package.
210
247
248
+
> [!NOTE]
249
+
> Only one of `PackageLicenseExpression`, `PackageLicenseFile` and `PackageLicenseUrl` can be specified at a time.
250
+
211
251
### PackageProjectUrl
212
252
A URL for the package's home page, often shown in UI displays as well as nuget.org.
0 commit comments