You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by su...@apache.org on 2024/01/28 09:59:42 UTC
(opendal) 01/01: chore(bindings/dotnet): build os detect
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 <su...@gmail.com>
AuthorDate: Sun Jan 28 17:59:22 2024 +0800
chore(bindings/dotnet): build os detect
Signed-off-by: suyanhanx <su...@gmail.com>
---
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>