Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CollectNuGetAuditSupressions target
Related to PR dotnet#9470. After PR dotnet#9470, VS and C# Dev Kit will attempt to collect NuGet audit suppression items via the `CollectNuGetAuditSuppressions` target. However, this target new to the 8.0.400 version of the .NET SDK. If a project is using an older version of the SDK our design-time build will now fail with complaints that the target doesn't exist. To work around this, here we update Microsoft.Managed.DesignTime.targets to include a no-op version of the target. This file ships with VS and the C# Dev Kit, not the SDK, and so we can guarantee that the target will always be present when we need it. The real definition in the SDK is in NuGet.targets; this file is imported _after_ Microsoft.Managed.DesignTime.targets and so the real definition, when it exists, will automatically replace the no-op definition.
- Loading branch information