From 36ad67a179e3430059b3ee501100b95c816a6f46 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Thu, 24 Oct 2024 00:03:53 +0200 Subject: [PATCH] Fix builds on macOS / Linux using the build.sh script --- WilsonUnix.sln | 7 ------- build.sh | 2 +- build/common.props | 3 +-- build/commonTest.props | 3 +-- build/targets.props | 1 - build/targetsTest.props | 1 - .../Microsoft.IdentityModel.AotCompatibility.Tests.csproj | 4 ++-- 7 files changed, 5 insertions(+), 16 deletions(-) diff --git a/WilsonUnix.sln b/WilsonUnix.sln index c236c01148..54c1ea1cdc 100644 --- a/WilsonUnix.sln +++ b/WilsonUnix.sln @@ -82,8 +82,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.IdentityModel.Val EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.IdentityModel.Abstractions.Tests", "test\Microsoft.IdentityModel.Abstractions.Tests\Microsoft.IdentityModel.Abstractions.Tests.csproj", "{4D6D09F9-5343-4831-9623-32089ADB27A0}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.IdentityModel.SampleTests", "test\Microsoft.IdentityModel.SampleTests\Microsoft.IdentityModel.SampleTests.csproj", "{A9A9E808-16A3-4351-A213-09D46883C0F3}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.IdentityModel.Validators.Tests", "test\Microsoft.IdentityModel.Validators.Tests\Microsoft.IdentityModel.Validators.Tests.csproj", "{17116E4B-B3FE-40A9-A733-1BC00FF5963D}" EndProject Global @@ -196,10 +194,6 @@ Global {4D6D09F9-5343-4831-9623-32089ADB27A0}.Debug|Any CPU.Build.0 = Debug|Any CPU {4D6D09F9-5343-4831-9623-32089ADB27A0}.Release|Any CPU.ActiveCfg = Release|Any CPU {4D6D09F9-5343-4831-9623-32089ADB27A0}.Release|Any CPU.Build.0 = Release|Any CPU - {A9A9E808-16A3-4351-A213-09D46883C0F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A9A9E808-16A3-4351-A213-09D46883C0F3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A9A9E808-16A3-4351-A213-09D46883C0F3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A9A9E808-16A3-4351-A213-09D46883C0F3}.Release|Any CPU.Build.0 = Release|Any CPU {17116E4B-B3FE-40A9-A733-1BC00FF5963D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {17116E4B-B3FE-40A9-A733-1BC00FF5963D}.Debug|Any CPU.Build.0 = Debug|Any CPU {17116E4B-B3FE-40A9-A733-1BC00FF5963D}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -236,7 +230,6 @@ Global {6EAA7FED-C053-4AD0-A73B-B96A5593BC49} = {BD2706C5-6C57-484D-89C8-A0CF5F8E3D19} {BD223874-759C-41AF-BA9E-F4E5D024F395} = {BD2706C5-6C57-484D-89C8-A0CF5F8E3D19} {4D6D09F9-5343-4831-9623-32089ADB27A0} = {8905D2E3-4499-4A86-BF3E-F098F228DD59} - {A9A9E808-16A3-4351-A213-09D46883C0F3} = {8905D2E3-4499-4A86-BF3E-F098F228DD59} {17116E4B-B3FE-40A9-A733-1BC00FF5963D} = {8905D2E3-4499-4A86-BF3E-F098F228DD59} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution diff --git a/build.sh b/build.sh index 29f1efdc86..54c7f5d367 100755 --- a/build.sh +++ b/build.sh @@ -30,7 +30,7 @@ pack() { echo -e "Pack ...... " echo -e "===========================================================\n" - dotnet pack --no-build WilsonUnix.sln + dotnet pack --no-build WilsonUnix.sln -c Debug echo -e "\n" echo -e "===========================================================" diff --git a/build/common.props b/build/common.props index 1e661867ea..b80be3698f 100644 --- a/build/common.props +++ b/build/common.props @@ -25,8 +25,7 @@ true snupkg - $(SrcTargets) - $(SrcStandardTargets) + $(SrcTargets) $(NetStandardVersion) 12 true diff --git a/build/commonTest.props b/build/commonTest.props index 68fd4fb90e..0ab6a6d387 100644 --- a/build/commonTest.props +++ b/build/commonTest.props @@ -13,8 +13,7 @@ true 0618 true - $(TestTargets) - $(TestOnlyCoreTargets) + $(TestTargets) $(DotNetCoreAppRuntimeVersion) false 12 diff --git a/build/targets.props b/build/targets.props index 6f92780d1f..dc29e3024f 100644 --- a/build/targets.props +++ b/build/targets.props @@ -3,6 +3,5 @@ net462;net472;netstandard2.0;net6.0;net8.0 netstandard2.0;net8.0 $(SrcTargets);net9.0 - netstandard2.0 diff --git a/build/targetsTest.props b/build/targetsTest.props index b6543bc986..380ab3f7cd 100644 --- a/build/targetsTest.props +++ b/build/targetsTest.props @@ -3,6 +3,5 @@ net462;net472;net6.0;net8.0 net8.0 $(TestTargets);net9.0 - net6.0 diff --git a/test/Microsoft.IdentityModel.AotCompatibility.Tests/Microsoft.IdentityModel.AotCompatibility.Tests.csproj b/test/Microsoft.IdentityModel.AotCompatibility.Tests/Microsoft.IdentityModel.AotCompatibility.Tests.csproj index 86c7c1deb0..07b2b77495 100644 --- a/test/Microsoft.IdentityModel.AotCompatibility.Tests/Microsoft.IdentityModel.AotCompatibility.Tests.csproj +++ b/test/Microsoft.IdentityModel.AotCompatibility.Tests/Microsoft.IdentityModel.AotCompatibility.Tests.csproj @@ -4,8 +4,8 @@ - net8.0 - $(TargetFramework); net9.0 + net8.0 + $(TargetFrameworks);net9.0 12 1.0.0-preview