Skip to content

Commit 8c99ee0

Browse files
Set $(NuGetAudit) to false in tests
Context: https://github.com/NuGet/docs.microsoft.com-nuget/blob/eed234f4b3edb7358e06cd2370828412a7dbd3f6/docs/concepts/Auditing-Packages.md#configuring-nuget-audit Some of our test projects give the warning: warning NU1902: Package 'Microsoft.AspNetCore.Components' 6.0.0 has a known moderate severity vulnerability, GHSA-3fx3-85r4-8j3w And then the test fails due to the warning.
1 parent 784d320 commit 8c99ee0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Xamarin.Android.Build.Tasks/Tests/Xamarin.ProjectTools/Android/XamarinAndroidApplicationProject.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public XamarinAndroidApplicationProject (string debugConfigurationName = "Debug"
4242
SetProperty (KnownProperties.OutputType, "Exe");
4343
SetProperty (KnownProperties.Nullable, "enable");
4444
SetProperty (KnownProperties.ImplicitUsings, "enable");
45+
SetProperty ("NuGetAudit", "False");
4546
SetProperty ("XamarinAndroidSupportSkipVerifyVersions", "True");
4647
SetProperty ("_FastDeploymentDiagnosticLogging", "True");
4748
SupportedOSPlatformVersion = "21.0";

0 commit comments

Comments
 (0)