Skip to content

Commit 3e0625c

Browse files
authored
Enable NuGetAudit and perform clean-up (#604)
* Enable NuGetAudit and perform clean-up - Remove unnecessary package source feeds - Remove the unnecessary source build prebuilt base line file * Delete eng/Xdt.snk * Update Directory.Build.props * Update Directory.Build.props
1 parent e0d7c74 commit 3e0625c

File tree

5 files changed

+7
-16
lines changed

5 files changed

+7
-16
lines changed

Directory.Build.props

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<PropertyGroup>
66
<Copyright>$(CopyrightMicrosoft)</Copyright>
77
<PackageLicenseExpression>MIT</PackageLicenseExpression>
8-
<AssemblyOriginatorKeyFile>$(RepositoryEngineeringDir)WebSdk.snk</AssemblyOriginatorKeyFile>
98
<LangVersion>latest</LangVersion>
109
</PropertyGroup>
1110

@@ -20,6 +19,9 @@
2019
<PackageTags>Microsoft Xdt XmlDocumentTransform XmlTransform</PackageTags>
2120
<RepositoryUrl>https://github.com/dotnet/xdt</RepositoryUrl>
2221
<RepositoryType>git</RepositoryType>
22+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
23+
<!-- Only upgrade NuGetAudit warnings to errors for official builds. -->
24+
<WarningsNotAsErrors Condition="'$(OfficialBuild)' != 'true'">$(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>
2325
</PropertyGroup>
2426

2527
</Project>

NuGet.config

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,12 @@
22
<configuration>
33
<packageSources>
44
<clear />
5-
<add key="dotnet8" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" />
6-
<add key="dotnet8-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8-transport/nuget/v3/index.json" />
75
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
86
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
9-
<add key="nuget-build" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/nuget-build/nuget/v3/index.json" />
10-
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
11-
<add key="dotnet-tools-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools-transport/nuget/v3/index.json" />
12-
<add key="dotnet-libraries" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-libraries/nuget/v3/index.json" />
13-
<add key="dotnet-libraries-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-libraries-transport/nuget/v3/index.json" />
147
</packageSources>
8+
<auditSources>
9+
<clear />
10+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
11+
</auditSources>
1512
<disabledPackageSources />
1613
</configuration>
File renamed without changes.

eng/SourceBuildPrebuiltBaseline.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

eng/Xdt.snk

-160 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)