From 78328edd347e87889e9ed354332ea3588fddc3f5 Mon Sep 17 00:00:00 2001 From: stakx Date: Fri, 15 Dec 2017 15:02:42 +0100 Subject: [PATCH] Build script: Fix xUnit test run for .NET Core (#553) Sadly, .NET Core tooling doesn't seem to be smart enough anymore to choose an appropriate .NET Core runtime host version itself when it is given `netcoreapp2.0` as the target platform. If we don't explicitly tell it which precise host version to use, it'll flat out refuse to execute code (the xUnit tests, in our case). Alternatively, I'm not smart enough to understand .NET Core. But I seem to remember that things used to just work not too long ago. See https://github.com/dotnet/cli/issues/7901. --- Moq.Tests.VisualBasic/Moq.Tests.VisualBasic.vbproj | 4 ++++ Moq.Tests/Moq.Tests.csproj | 1 + 2 files changed, 5 insertions(+) diff --git a/Moq.Tests.VisualBasic/Moq.Tests.VisualBasic.vbproj b/Moq.Tests.VisualBasic/Moq.Tests.VisualBasic.vbproj index f1be81e23..e7829862c 100644 --- a/Moq.Tests.VisualBasic/Moq.Tests.VisualBasic.vbproj +++ b/Moq.Tests.VisualBasic/Moq.Tests.VisualBasic.vbproj @@ -12,6 +12,10 @@ + + 2.0.3 + + diff --git a/Moq.Tests/Moq.Tests.csproj b/Moq.Tests/Moq.Tests.csproj index 6c63525e3..bb669e7d2 100644 --- a/Moq.Tests/Moq.Tests.csproj +++ b/Moq.Tests/Moq.Tests.csproj @@ -15,6 +15,7 @@ $(DefineConstants);DESKTOP;FEATURE_CAS;FEATURE_CODEDOM;FEATURE_COM;FEATURE_SERIALIZATION + 2.0.3 $(DefineConstants);NETCORE