From ed0c5fed7e1159cfcb54aeff1ee859fa568b2967 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sun, 15 May 2022 22:37:08 -0700 Subject: [PATCH] build with netstandard2.0 for Linux and Windows (#640) --- .github/workflows/minio-dotnet-linux.yml | 5 ----- Minio/Minio.csproj | 4 +--- dotnet-build.sh | 20 -------------------- 3 files changed, 1 insertion(+), 28 deletions(-) delete mode 100755 dotnet-build.sh diff --git a/.github/workflows/minio-dotnet-linux.yml b/.github/workflows/minio-dotnet-linux.yml index 3f07669a4..9e616d5fa 100644 --- a/.github/workflows/minio-dotnet-linux.yml +++ b/.github/workflows/minio-dotnet-linux.yml @@ -44,11 +44,6 @@ 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/Minio.csproj b/Minio/Minio.csproj index 0d02b9fa2..d6ea98d35 100644 --- a/Minio/Minio.csproj +++ b/Minio/Minio.csproj @@ -3,8 +3,7 @@ latest Minio Minio - netstandard2.0 - netstandard2.1 + netstandard2.0 embedded False ..\Minio.snk @@ -29,7 +28,6 @@ minio;cloud;storage git https://github.com/minio/minio-dotnet - win-x64;win-arm64;linux-x64;linux-arm64 diff --git a/dotnet-build.sh b/dotnet-build.sh deleted file mode 100755 index 3bf4c60c5..000000000 --- a/dotnet-build.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/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