Skip to content

Commit c220483

Browse files
authored
Add docs for NU1014 (#3171)
1 parent e618857 commit c220483

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

docs/TOC.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
### [NU1010](reference/errors-and-warnings/NU1010.md)
152152
### [NU1011](reference/errors-and-warnings/NU1011.md)
153153
### [NU1012](reference/errors-and-warnings/NU1012.md)
154+
### [NU1014](reference/errors-and-warnings/NU1014.md)
154155
### [NU1100](reference/errors-and-warnings/NU1100.md)
155156
### [NU1101](reference/errors-and-warnings/NU1101.md)
156157
### [NU1102](reference/errors-and-warnings/NU1102.md)

docs/reference/Errors-and-Warnings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ NuGet supports the following configuration properties.
3636
| Signed packages errors (creation and verification) | [NU3001](./errors-and-warnings/NU3001.md), [NU3004](./errors-and-warnings/NU3004.md), [NU3005](./errors-and-warnings/NU3005.md), [NU3008](./errors-and-warnings/NU3008.md), [NU3034](./errors-and-warnings/NU3034.md)|
3737
| Pack Errors | [NU5000](./errors-and-warnings/NU5000.md), [NU5001](./errors-and-warnings/NU5001.md), [NU5002](./errors-and-warnings/NU5002.md), [NU5003](./errors-and-warnings/NU5003.md), [NU5004](./errors-and-warnings/NU5004.md), [NU5005](./errors-and-warnings/NU5005.md), [NU5007](./errors-and-warnings/NU5007.md), [NU5008](./errors-and-warnings/NU5008.md), [NU5009](./errors-and-warnings/NU5009.md), [NU5010](./errors-and-warnings/NU5010.md), [NU5011](./errors-and-warnings/NU5011.md), [NU5012](./errors-and-warnings/NU5012.md), [NU5013](./errors-and-warnings/NU5013.md), [NU5014](./errors-and-warnings/NU5014.md), [NU5015](./errors-and-warnings/NU5015.md), [NU5016](./errors-and-warnings/NU5016.md), [NU5017](./errors-and-warnings/NU5017.md), [NU5018](./errors-and-warnings/NU5018.md), [NU5019](./errors-and-warnings/NU5019.md), [NU5020](./errors-and-warnings/NU5020.md), [NU5021](./errors-and-warnings/NU5021.md), [NU5022](./errors-and-warnings/NU5022.md), [NU5023](./errors-and-warnings/NU5023.md), [NU5024](./errors-and-warnings/NU5024.md), [NU5025](./errors-and-warnings/NU5025.md), [NU5026](./errors-and-warnings/NU5026.md), [NU5027](./errors-and-warnings/NU5027.md), [NU5028](./errors-and-warnings/NU5028.md), [NU5029](./errors-and-warnings/NU5029.md), [NU5036](./errors-and-warnings/NU5036.md), [NU5042](./errors-and-warnings/NU5042.md), [NU5049](./errors-and-warnings/NU5049.md)
3838
| License specific Pack Errors | [NU5030](./errors-and-warnings/NU5030.md), [NU5031](./errors-and-warnings/NU5031.md), [NU5032](./errors-and-warnings/NU5032.md), [NU5033](./errors-and-warnings/NU5033.md), [NU5034](./errors-and-warnings/NU5034.md), [NU5035](./errors-and-warnings/NU5035.md)
39-
| NuGetAudit specific warnings | [NU1900](./errors-and-warnings/NU1900.md), [NU1901, NU1902, NU1903, NU1904](./errors-and-warnings/NU1901-NU1904.md), [NU1905](./errors-and-warnings/NU1905.md) |
39+
| NuGetAudit specific warnings | [NU1014](./errors-and-warnings/NU1014.md), [NU1900](./errors-and-warnings/NU1900.md), [NU1901, NU1902, NU1903, NU1904](./errors-and-warnings/NU1901-NU1904.md), [NU1905](./errors-and-warnings/NU1905.md) |
4040

4141
## Warnings
4242

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: NuGet Error NU1014
3+
description: NU1014 error code
4+
author: zivkan
5+
ms.author: zivkan
6+
ms.date: 11/01/2023
7+
ms.topic: reference
8+
f1_keywords:
9+
- "NU1014"
10+
---
11+
12+
# NuGet Error NU1014
13+
14+
## Scenario
15+
16+
<pre>Invalid NuGetAudit value 'sample'. Valid values: true, false.</pre>
17+
18+
<pre>Invalid NuGetAuditLevel value 'sample';. Valid values: low, moderate, high, critical.</pre>
19+
20+
<pre>Invalid NuGetAuditMode value 'sample'. Valid values: direct, all.</pre>
21+
22+
### Issue
23+
24+
Your project file, or a file it imports (for example `Directory.Build.props`) has defined the MSBuild property shown in the error message (either `NuGetAudit`, `NuGetAuditLevel`, or `NuGetAuditMode`) to an invalid value.
25+
26+
### Solution
27+
28+
- Remove the definition of the MSBuild property to use NuGet's default.
29+
- Change the value of the MSBuild property to a value that the error lists as valid.
30+
31+
For example, if one of your MSBuild files currently has `<NuGetAuditLevel>sample<NuGetAuditLevel>`, either delete the line, or change it to `<NuGetAuditLevel>low</NuGetAuditLevel>`.
32+
33+
To find where the property is being defined, you can use [MSBuild's `-preprocess` command line argument](/visualstudio/msbuild/msbuild-command-line-reference). Also see [MSBuild's example on the page for customizing the build](/visualstudio/msbuild/customize-by-directory#example).

0 commit comments

Comments
 (0)