Skip to content

Commit c77880a

Browse files
authored
Merge pull request #256 from mhutch/nuget-cpm-and-audit-symbols
Add missing CPM and audit symbols to NuGet schema
2 parents 2375548 + cb5f48e commit c77880a

File tree

1 file changed

+60
-2
lines changed

1 file changed

+60
-2
lines changed

MonoDevelop.MSBuild/Schemas/NuGet.buildschema.json

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,64 @@
130130
"type": "bool",
131131
"defaultValue": "false",
132132
"helpUrl": "https://learn.microsoft.com/nuget/reference/msbuild-targets#restoring-with-msbuild-static-graph-evaluation"
133+
},
134+
"ManagePackageVersionsCentrally": {
135+
"description": "Enables central package management for NuGet packages. This allows defining the versions of NuGet packages in a central `Directory.Packages.props` file instead of in the individual project files.",
136+
"type": "bool",
137+
"defaultValue": "false",
138+
"helpUrl": "https://learn.microsoft.com/nuget/consume-packages/central-package-management"
139+
},
140+
"CentralPackageTransitivePinningEnabled": {
141+
"description": "Enables transitive pinning for centrally managed packages. This allows controlling the versions of transitive dependencies by implicitly promoting them to top-level dependencies when necessary. ",
142+
"type": "bool",
143+
"defaultValue": "false",
144+
"helpUrl": "https://learn.microsoft.com/en-us/nuget/consume-packages/central-package-management#transitive-pinning"
145+
},
146+
"CentralPackageVersionOverrideEnabled": {
147+
"description": "Controls whether projects can use the `VersionOverride` property to override the version of a `PackageReference` when central package management is enabled.",
148+
"type": "bool",
149+
"defaultValue": "true",
150+
"helpUrl": "https://learn.microsoft.com/en-us/nuget/consume-packages/central-package-management#overriding-package-versions"
151+
},
152+
"NuGetAudit": {
153+
"description": "Enables the NuGet restore task to audit packages for known security vulnerabilities.",
154+
"type": "bool",
155+
"defaultValue": "true",
156+
"helpUrl": "https://learn.microsoft.com/en-us/nuget/concepts/auditing-packages#configuring-nuget-audit"
157+
},
158+
"NuGetAuditMode": {
159+
"description": "Specifies the mode for the NuGet security audit. The default is `all` in .NET 9.0.100 and later, and `direct` in earlier versions.",
160+
"type": {
161+
"values": {
162+
"all": "Audit all dependencies for security vulnerabilities.",
163+
"direct": "Audit direct dependencies only for security vulnerabilities."
164+
}
165+
},
166+
"defaultValue": "all",
167+
"helpUrl": "https://learn.microsoft.com/en-us/nuget/concepts/auditing-packages#configuring-nuget-audit"
168+
},
169+
"NuGetAuditLevel": {
170+
"description": "The minimum severity level for the NuGet security audit to report.",
171+
"type": {
172+
"values": {
173+
"low": "Report all security vulnerabilities.",
174+
"moderate": "Report medium, high and critical severity security vulnerabilities only.",
175+
"high": "Report high and critical severity security vulnerabilities only.",
176+
"critical": "Report critical severity security vulnerabilities only."
177+
}
178+
},
179+
"defaultValue": "low",
180+
"helpUrl": "https://learn.microsoft.com/en-us/nuget/concepts/auditing-packages#configuring-nuget-audit"
181+
}
182+
},
183+
"metadata": [
184+
{
185+
"$appliesTo": [ "PackageReference" ],
186+
"VersionOverride": {
187+
"description": "When central package management is enabled, this property allows overriding the version of a `PackageReference`, as long as `CentralPackageVersionOverrideEnabled` is not `false`.",
188+
"type": "nuget-version",
189+
"helpUrl": "https://learn.microsoft.com/en-us/nuget/consume-packages/central-package-management#overriding-package-versions"
190+
}
133191
}
134-
}
135-
}
192+
]
193+
}

0 commit comments

Comments
 (0)