Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
<CustomizationsPrefix>Customizations</CustomizationsPrefix>
<CustomizationsPropsFile>$(CustomizationsPrefix).props</CustomizationsPropsFile>
<CustomizationsSourceFile>$(CustomizationsPrefix).cs</CustomizationsSourceFile>

<!-- Only upgrade NuGetAudit warnings to errors for official builds. -->
<WarningsNotAsErrors Condition="'$(OfficialBuild)' != 'true'">$(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>
</PropertyGroup>

</Project>
4 changes: 4 additions & 0 deletions NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@
<add key="darc-pub-DotNet-msbuild-Trusted" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-DotNet-msbuild-Trusted-a400405b/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources />
<auditSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</auditSources>
</configuration>
1 change: 1 addition & 0 deletions src/packageSourceGenerator/PackageSourceGenerator.proj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>$(NetCurrent)</TargetFramework>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<PackageSourceGeneratorTaskAssembly>$(ArtifactsBinDir)PackageSourceGeneratorTask\$(Configuration)\$(NetCurrent)\PackageSourceGeneratorTask.dll</PackageSourceGeneratorTaskAssembly>
<!-- The packages output directory. -->
<PackagesTargetDirectory Condition="'$(PackageType)' != 'text'">$(RepoRoot)src\referencePackages\src\</PackagesTargetDirectory>
Expand Down
1 change: 1 addition & 0 deletions src/referencePackages/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<SourceControlInformationFeatureSupported>false</SourceControlInformationFeatureSupported>
<Configuration>Release</Configuration>
<EnableSourceLink>false</EnableSourceLink>
<NuGetAudit>false</NuGetAudit>

<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
Expand Down
1 change: 1 addition & 0 deletions src/targetPacks/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<TargetFramework>netstandard2.0</TargetFramework>
<IncludeBuildOutput>false</IncludeBuildOutput>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
<NuGetAudit>false</NuGetAudit>

<RestoreIlTooling>true</RestoreIlTooling>

Expand Down