This is an automated email from the ASF dual-hosted git repository.

EmryZhang pushed a commit to branch prepare/net-pack-validation
in repository https://gitbox.apache.org/repos/asf/casbin-Casbin.NET.git

commit f39f3921690365e677b26c4f5fe23cd20138980f
Author: Zhangyanrui123 <[email protected]>
AuthorDate: Sat Nov 7 23:44:53 2026 +0800

    build: document existing framework API differences for package validation
---
 Casbin/CompatibilitySuppressions.xml | 68 ++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)

diff --git a/Casbin/CompatibilitySuppressions.xml 
b/Casbin/CompatibilitySuppressions.xml
new file mode 100644
index 0000000..ceaabf1
--- /dev/null
+++ b/Casbin/CompatibilitySuppressions.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  https://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<!-- Existing NET452 conditionals deliberately use Task<IEnumerable<T>> rather
+     than IAsyncEnumerable<T>, and omit Microsoft.Extensions.Logging. Keep the
+     seven exact net452-to-net461 differences below visible without disabling
+     package validation or suppressing other members/frameworks/diagnostics.
+     
https://learn.microsoft.com/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>CP0002</DiagnosticId>
+    
<Target>M:Casbin.Enforcer.BatchEnforceAsync``1(Casbin.EnforceContext,System.Collections.Generic.IEnumerable{``0})</Target>
+    <Left>lib/net452/Casbin.dll</Left>
+    <Right>lib/net461/Casbin.dll</Right>
+  </Suppression>
+  <Suppression>
+    <DiagnosticId>CP0002</DiagnosticId>
+    
<Target>M:Casbin.EnforcerExtension.BatchEnforceAsync``1(Casbin.IEnforcer,System.Collections.Generic.IEnumerable{``0})</Target>
+    <Left>lib/net452/Casbin.dll</Left>
+    <Right>lib/net461/Casbin.dll</Right>
+  </Suppression>
+  <Suppression>
+    <DiagnosticId>CP0002</DiagnosticId>
+    
<Target>M:Casbin.EnforcerExtension.BatchEnforceWithMatcherAsync``1(Casbin.IEnforcer,System.String,System.Collections.Generic.IEnumerable{``0})</Target>
+    <Left>lib/net452/Casbin.dll</Left>
+    <Right>lib/net461/Casbin.dll</Right>
+  </Suppression>
+  <Suppression>
+    <DiagnosticId>CP0002</DiagnosticId>
+    
<Target>M:Casbin.IEnforcer.BatchEnforceAsync``1(Casbin.EnforceContext,System.Collections.Generic.IEnumerable{``0})</Target>
+    <Left>lib/net452/Casbin.dll</Left>
+    <Right>lib/net461/Casbin.dll</Right>
+  </Suppression>
+  <Suppression>
+    <DiagnosticId>CP0002</DiagnosticId>
+    <Target>M:Casbin.Persist.BaseAdapter.ReadPersistPolicyAsync</Target>
+    <Left>lib/net452/Casbin.dll</Left>
+    <Right>lib/net461/Casbin.dll</Right>
+  </Suppression>
+  <Suppression>
+    <DiagnosticId>CP0006</DiagnosticId>
+    
<Target>M:Casbin.IEnforcer.BatchEnforceAsync``1(Casbin.EnforceContext,System.Collections.Generic.IEnumerable{``0})</Target>
+    <Left>lib/net452/Casbin.dll</Left>
+    <Right>lib/net461/Casbin.dll</Right>
+  </Suppression>
+  <Suppression>
+    <DiagnosticId>CP0006</DiagnosticId>
+    <Target>P:Casbin.IEnforcer.Logger</Target>
+    <Left>lib/net452/Casbin.dll</Left>
+    <Right>lib/net461/Casbin.dll</Right>
+  </Suppression>
+</Suppressions>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to