Skip to content

Commit

Permalink
Move NuGet.config to the roor + add vuln info (#3122)
Browse files Browse the repository at this point in the history
Ports PRs: #2443 and #3024 to release/5.2 branch
  • Loading branch information
cheenamalhotra authored Jan 24, 2025
1 parent b1a2461 commit 18b21f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/NuGet.config → NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@
<clear />
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
</packageSources>
<auditSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</auditSources>
</configuration>
6 changes: 6 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,18 @@
<NuGetCmd>$(NuGetRoot)nuget.exe</NuGetCmd>
<!-- Respect environment variable for the .NET install directory if set; otherwise, use the current default location -->
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsNotAsErrors>$(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904;NU1905</WarningsNotAsErrors>
<BuildSimulator Condition="'$(BuildSimulator)' != 'true'">false</BuildSimulator>
</PropertyGroup>
<PropertyGroup Condition="'$(BuildSimulator)' == 'true'">
<DefineConstants>$(DefineConstants);ENCLAVE_SIMULATOR</DefineConstants>
</PropertyGroup>

<!-- Audit Settings -->
<PropertyGroup>
<NuGetAuditMode>all</NuGetAuditMode>
</PropertyGroup>

<!-- Packaging for source link-->
<PropertyGroup>
<DebugType>portable</DebugType>
Expand Down

0 comments on commit 18b21f5

Please sign in to comment.