Skip to content

Commit

Permalink
Turn off WarningsAsErrors until we bump System.Text.Json (#44931)
Browse files Browse the repository at this point in the history
  • Loading branch information
christothes authored Jul 10, 2024
1 parent b6161ec commit 4c337a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion eng/Directory.Build.Common.props
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
AZPROVISION001; <!-- Provisioning -->
</NoWarn>

<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!-- Temporarily setting this to false while we resolve the security warning related to System.Text.Json -->
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<!--
.NET 8 now produces security warnings for nuget packages in dotnet restore. Keep these as warnings in T1 to avoid needing to update T1 library dependencies.
See: https://learn.microsoft.com/en-us/dotnet/core/compatibility/sdk/8.0/dotnet-restore-audit#recommended-action
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/templates/jobs/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
parameters:
LogFilePath: $(Build.ArtifactStagingDirectory)/pack.binlog
- script: >-
dotnet pack eng/service.proj -warnaserror
dotnet pack eng/service.proj
/p:ValidateRunApiCompat=true
/p:SDKType=${{ parameters.SDKType }}
/p:ServiceDirectory=${{ parameters.ServiceDirectory }}
Expand Down Expand Up @@ -239,7 +239,7 @@ jobs:
LogFilePath: $(Build.ArtifactStagingDirectory)/rebuild.binlog

- script: >-
dotnet build eng/service.proj -warnaserror
dotnet build eng/service.proj
/t:rebuild
/p:DebugType=none
/p:SDKType=${{ parameters.SDKType }}
Expand Down

0 comments on commit 4c337a8

Please sign in to comment.