Skip to content

Commit

Permalink
Update compatibility suppressions
Browse files Browse the repository at this point in the history
Resolve CP0001 and CP0002 warnings with the .NET 8 SDK.
  • Loading branch information
martincostello committed Oct 30, 2023
1 parent d92e8e8 commit f953a96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 139 deletions.
12 changes: 0 additions & 12 deletions src/Polly.Core/CompatibilitySuppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
<Left>lib/netstandard2.0/Polly.Core.dll</Left>
<Right>lib/net6.0/Polly.Core.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Polly.CircuitBreaker.BrokenCircuitException`1.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)</Target>
<Left>lib/netstandard2.0/Polly.Core.dll</Left>
<Right>lib/net6.0/Polly.Core.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Polly.CircuitBreaker.IsolatedCircuitException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)</Target>
Expand All @@ -25,10 +19,4 @@
<Left>lib/netstandard2.0/Polly.Core.dll</Left>
<Right>lib/net6.0/Polly.Core.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Polly.Timeout.TimeoutRejectedException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)</Target>
<Left>lib/netstandard2.0/Polly.Core.dll</Left>
<Right>lib/net6.0/Polly.Core.dll</Right>
</Suppression>
</Suppressions>
129 changes: 2 additions & 127 deletions src/Polly/CompatibilitySuppressions.xml
Original file line number Diff line number Diff line change
@@ -1,132 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- https://learn.microsoft.com/en-us/dotnet/fundamentals/package-validation/diagnostic-ids -->
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Polly.CircuitBreaker.BrokenCircuitException</Target>
<Left>lib/net461/Polly.dll</Left>
<Right>lib/netstandard2.0/Polly.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Polly.CircuitBreaker.BrokenCircuitException`1</Target>
<Left>lib/net461/Polly.dll</Left>
<Right>lib/netstandard2.0/Polly.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Polly.CircuitBreaker.CircuitState</Target>
<Left>lib/net461/Polly.dll</Left>
<Right>lib/netstandard2.0/Polly.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Polly.CircuitBreaker.IsolatedCircuitException</Target>
<Left>lib/net461/Polly.dll</Left>
<Right>lib/netstandard2.0/Polly.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Polly.ExecutionRejectedException</Target>
<Left>lib/net461/Polly.dll</Left>
<Right>lib/netstandard2.0/Polly.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Polly.Timeout.TimeoutRejectedException</Target>
<Left>lib/net461/Polly.dll</Left>
<Right>lib/netstandard2.0/Polly.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Polly.CircuitBreaker.BrokenCircuitException</Target>
<Left>lib/net472/Polly.dll</Left>
<Right>lib/net472/Polly.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Polly.CircuitBreaker.BrokenCircuitException`1</Target>
<Left>lib/net472/Polly.dll</Left>
<Right>lib/net472/Polly.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Polly.CircuitBreaker.CircuitState</Target>
<Left>lib/net472/Polly.dll</Left>
<Right>lib/net472/Polly.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Polly.CircuitBreaker.IsolatedCircuitException</Target>
<Left>lib/net472/Polly.dll</Left>
<Right>lib/net472/Polly.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Polly.ExecutionRejectedException</Target>
<Left>lib/net472/Polly.dll</Left>
<Right>lib/net472/Polly.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Polly.Timeout.TimeoutRejectedException</Target>
<Left>lib/net472/Polly.dll</Left>
<Right>lib/net472/Polly.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Polly.CircuitBreaker.BrokenCircuitException</Target>
<Left>lib/netstandard2.0/Polly.dll</Left>
<Right>lib/netstandard2.0/Polly.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Polly.CircuitBreaker.BrokenCircuitException`1</Target>
<Left>lib/netstandard2.0/Polly.dll</Left>
<Right>lib/netstandard2.0/Polly.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Polly.CircuitBreaker.CircuitState</Target>
<Left>lib/netstandard2.0/Polly.dll</Left>
<Right>lib/netstandard2.0/Polly.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Polly.CircuitBreaker.IsolatedCircuitException</Target>
<Left>lib/netstandard2.0/Polly.dll</Left>
<Right>lib/netstandard2.0/Polly.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Polly.ExecutionRejectedException</Target>
<Left>lib/netstandard2.0/Polly.dll</Left>
<Right>lib/netstandard2.0/Polly.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Polly.Timeout.TimeoutRejectedException</Target>
<Left>lib/netstandard2.0/Polly.dll</Left>
<Right>lib/netstandard2.0/Polly.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Polly.Bulkhead.BulkheadRejectedException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)</Target>
Expand Down Expand Up @@ -179,7 +53,8 @@
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Polly.Timeout.TimeoutRejectedException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)</Target>
<Left>lib/netstandard2.0/Polly.dll</Left>
<Right>lib/net6.0/Polly.dll</Right>
<Right>lib/netstandard2.0/Polly.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>PKV006</DiagnosticId>
Expand Down

0 comments on commit f953a96

Please sign in to comment.