NuGet / Home

Repo for NuGet Client issues

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Define `AuditSources` from an MSBuild property

meziantou opened this issue · comments

NuGet Product(s) Involved

MSBuild.exe

The Elevator Pitch

You recently added the capability to define <auditSources> in the NuGet.config file (NuGet/NuGet.Client#5708).

We like sharing most project configuration as part of MSBuild files. Would it be possible to be provide an MSBuild property, similar to RestoreSources and RestoreAdditionalProjectSources, to define the AuditSources?

Another point is that we share some properties between multiple projects by using a NuGet package. This package contains MSBuild props/targets that are automatically imported by NuGet (More info about this strategy in this post https://www.meziantou.net/sharing-coding-style-and-roslyn-analyzers-across-projects.htm).
Would it be possible to set the AuditSources in this package?

Additional Context and Details

No response