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

suyanhanx pushed a commit to branch set-dotnet-ci
in repository https://gitbox.apache.org/repos/asf/opendal.git

commit a51a611eb6d049b9d08dd4dfc735d57e3615854e
Author: suyanhanx <[email protected]>
AuthorDate: Sun Jan 28 17:59:22 2024 +0800

    chore(bindings/dotnet): build os detect
    
    Signed-off-by: suyanhanx <[email protected]>
---
 bindings/dotnet/DotOpenDAL/DotOpenDAL.csproj | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/bindings/dotnet/DotOpenDAL/DotOpenDAL.csproj 
b/bindings/dotnet/DotOpenDAL/DotOpenDAL.csproj
index a7a7ac99fa..f8ba89d0c9 100644
--- a/bindings/dotnet/DotOpenDAL/DotOpenDAL.csproj
+++ b/bindings/dotnet/DotOpenDAL/DotOpenDAL.csproj
@@ -17,7 +17,12 @@
         <Nullable>enable</Nullable>
     </PropertyGroup>
 
-    <ItemGroup>
+    <ItemGroup 
Condition="$([System.Runtime.InteropServices.RuntimeInformation]::RuntimeIdentifier.StartsWith('osx'))">
+        <None Include="../target/debug/libopendal_dotnet.dylib">
+            <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+        </None>
+    </ItemGroup>
+    <ItemGroup 
Condition="$([System.Runtime.InteropServices.RuntimeInformation]::RuntimeIdentifier.StartsWith('linux'))">
         <None Include="../target/debug/libopendal_dotnet.so">
             <CopyToOutputDirectory>Always</CopyToOutputDirectory>
         </None>

Reply via email to