diff --git a/.github/workflows/minio-dotnet-linux.yml b/.github/workflows/minio-dotnet-linux.yml
index 9e616d5f..3f07669a 100644
--- a/.github/workflows/minio-dotnet-linux.yml
+++ b/.github/workflows/minio-dotnet-linux.yml
@@ -44,6 +44,11 @@ jobs:
dotnet pack ./Minio/Minio.csproj --no-build --configuration Release --output ./artifacts
dotnet test ./Minio.Tests/Minio.Tests.csproj
+ # Build for all runtime identifiers
+ - name: Build for runtime identifiers
+ run: |
+ ./dotnet-build.sh
+
# Execute all functional tests in the solution
- name: Execute Functional Tests
env:
diff --git a/Minio.pub b/Minio.pub
new file mode 100644
index 00000000..302e3948
Binary files /dev/null and b/Minio.pub differ
diff --git a/Minio.snk b/Minio.snk
index 80319966..8a900142 100644
Binary files a/Minio.snk and b/Minio.snk differ
diff --git a/Minio/Minio.csproj b/Minio/Minio.csproj
index bafdf96e..0d02b9fa 100644
--- a/Minio/Minio.csproj
+++ b/Minio/Minio.csproj
@@ -3,8 +3,8 @@
latest
Minio
Minio
- netstandard2.0
- netstandard2.1
+ netstandard2.0
+ netstandard2.1
embedded
False
..\Minio.snk
@@ -17,7 +17,7 @@
Minio
4.0.3
MinIO .NET SDK for Amazon S3 Compatible Cloud Storage.
- Copyright (c) 2022. All rights reserved.
+ Copyright (c) 2022. All rights reserved.
MinIO, Inc.
$(NoWarn);CS1591
true
@@ -29,7 +29,7 @@
minio;cloud;storage
git
https://github.com/minio/minio-dotnet
- win-x64;win-arm64;linux-x64;linux-arm64;osx-x64
+ win-x64;win-arm64;linux-x64;linux-arm64
diff --git a/Minio/Properties/AssemblyInfo.cs b/Minio/Properties/AssemblyInfo.cs
index c407c104..1a3b9fa8 100644
--- a/Minio/Properties/AssemblyInfo.cs
+++ b/Minio/Properties/AssemblyInfo.cs
@@ -1,8 +1,8 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Minio.Tests, PublicKey=" +
- "0024000004800000940000000602000000240000525341310004000001000100b5b1773b93a0a4" +
- "47624b0ba537a9f6b948a483c25f82b77c2d4025fc8d5b3151a5b2b0f5a00e7f8cec340430e809" +
- "fe196713be30b75fd5efa790a39357709cef50a7e073106a3b24964f2eb6139a95598165b65f37" +
- "be8ae65145afb9c4ba27bb85c310c52ed00435478f44368495a344ce688b9140ad0e8fea65ec00" +
- "a8912398")]
\ No newline at end of file
+ "00240000048000009400000006020000002400005253413100040000010001009396768046e3e1" +
+ "fb35eb63146875362d3c512e034ec54178e9b1d13fa146c5984507e3c0be9a8501364576705146" +
+ "1ec27095f58fb11c49eca0a6ebe9513fb51f903033dbf5bdb1c8cef51201acdc6d0b40418e62a8" +
+ "5e851fa69d07fc2bd192a614f39d57c9546c634e96f5671acc655a369fd2f933ed853a652cd4ee" +
+ "2be93594")]
\ No newline at end of file
diff --git a/dotnet-build.sh b/dotnet-build.sh
new file mode 100755
index 00000000..3bf4c60c
--- /dev/null
+++ b/dotnet-build.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+set -x
+set -e
+for rid in $(echo win-x64 win-arm64 linux-x64 linux-arm64); do
+ echo "restore & build for Release"
+ dotnet build -r $rid --configuration Release ./Minio/Minio.csproj
+
+ echo "Strong name sign assembly"
+ if [ -f ./Minio/bin/Release/netstandard2.0/${rid}/Minio.dll ]; then
+ echo "found"
+ sn -R ./Minio/bin/Release/netstandard2.0/${rid}/Minio.dll ./Minio.snk
+ fi
+
+ if [ -f ./Minio/bin/Release/netstandard2.1/${rid}/Minio.dll ]; then
+ sn -R ./Minio/bin/Release/netstandard2.1/${rid}/Minio.dll ./Minio.snk
+ fi
+done
+
+dotnet pack ./Minio/Minio.csproj --no-build --configuration Release --output ./artifacts