Skip to content

Commit

Permalink
revert removal of warnaserror (#44961)
Browse files Browse the repository at this point in the history
  • Loading branch information
christothes authored Jul 22, 2024
1 parent 545af7b commit d012109
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions eng/Directory.Build.Common.props
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,8 @@
AZPROVISION001; <!-- Provisioning -->
</NoWarn>

<!-- Temporarily setting this to false while we resolve the security warning related to System.Text.Json -->
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<!--
<TreatWarningsAsErrors>true</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
5 changes: 2 additions & 3 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
dotnet pack eng/service.proj -warnaserror
/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
dotnet build eng/service.proj -warnaserror
/t:rebuild
/p:DebugType=none
/p:SDKType=${{ parameters.SDKType }}
Expand Down Expand Up @@ -342,4 +342,3 @@ jobs:
TestTimeoutInMinutes: ${{ parameters.TestTimeoutInMinutes }}
# The value for ProjectListOverrideFilePropertyName should be the same as dependency.tests.yml parameter ProjectListOverrideFilePropertyName
ProjectListOverrideFilePropertyName: 'ProjectListOverrideFile'

0 comments on commit d012109

Please sign in to comment.