From 90c3c97beec1dd58703229673d44a3ff401e3ae2 Mon Sep 17 00:00:00 2001 From: Brandon Minnick <13558917+brminnick@users.noreply.github.com> Date: Sat, 13 Mar 2021 23:13:24 -0800 Subject: [PATCH] Change Platform from NetCore to macOS --- azure-pipelines.yml | 6 +++--- .../Xamarin.CommunityToolkit.UnitTests.csproj | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index eb6fef3fe..12a6ba559 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -203,15 +203,15 @@ jobs: dotnet restore $(PathToUnitTestCsproj) /p:Configuration=Release $(PathToMsBuildOnMacOS) $(PathToUnitTestCsproj) /p:Configuration=UnitTest /p:Platform="" /restore /t:Build - echo "Running Unit Tests on .NET Framework (xUnit does not support dotnet test for .NET Framework: https://xunit.net/docs/getting-started/netfx/cmdline)" + echo "********** Running Unit Tests on .NET Framework (xUnit does not support dotnet test for .NET Framework: https://xunit.net/docs/getting-started/netfx/cmdline) **********" # UnitTestDLL for .NET Framework 4.6.1 Result: `find . -name Xamarin.CommunityToolkit.UnitTests.dll | grep bin | grep 461` # XUnit Console Runner for .NET Framework 4.6.1 Result: `find ~/.nuget/packages | grep net461 | grep xunit.console.exe | grep -v config` mono "`find ~/.nuget/packages | grep net461 | grep xunit.console.exe | grep -v config`" "`find . -name Xamarin.CommunityToolkit.UnitTests.dll | grep bin | grep 461`" - echo "Running Unit Tests on .NET Core" - dotnet test $(PathToUnitTestCsproj) /p:Configuration=Release /p:Platform="NetCore" + echo "***** Running Unit Tests on .NET Core *****" + dotnet test $(PathToUnitTestCsproj) /p:Configuration=Release /p:Platform="macOS" - task: CmdLine@2 displayName: 'Pack NuGets' inputs: diff --git a/src/CommunityToolkit/Xamarin.CommunityToolkit.UnitTests/Xamarin.CommunityToolkit.UnitTests.csproj b/src/CommunityToolkit/Xamarin.CommunityToolkit.UnitTests/Xamarin.CommunityToolkit.UnitTests.csproj index dddcd2bfc..3f9d87442 100644 --- a/src/CommunityToolkit/Xamarin.CommunityToolkit.UnitTests/Xamarin.CommunityToolkit.UnitTests.csproj +++ b/src/CommunityToolkit/Xamarin.CommunityToolkit.UnitTests/Xamarin.CommunityToolkit.UnitTests.csproj @@ -1,11 +1,11 @@  - + netcoreapp2.1;netcoreapp3.1 false - + netcoreapp2.1;netcoreapp3.1;net461 false