Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ward <matt.ward@microsoft.com>2018-02-13 21:51:03 +0300
committerMatt Ward <matt.ward@microsoft.com>2018-02-14 17:02:38 +0300
commit2e55e0f97d5a7da61789752c498509a84b6f4b71 (patch)
tree3c005a382724f2c80164b6b299890b06b5ed259b /main/src/addins/MonoDevelop.UnitTesting.NUnit
parentd70128a9c6e7cbd449ff8a1c6d6df945de228b52 (diff)
[NUnit] Fix being unable to use NUnit in a .NET Core test project
The problem was that the NUnit test provider was finding a PackageReference for NUnit, trying to load the tests for the .NET Core project and failing. To fix this the NUnit test provider now ignores .NET Core projects so the VS Test provider has a chance to load the tests. Fixes VSTS #565933
Diffstat (limited to 'main/src/addins/MonoDevelop.UnitTesting.NUnit')
-rw-r--r--main/src/addins/MonoDevelop.UnitTesting.NUnit/MonoDevelop.UnitTesting.NUnit/NUnitProjectTestSuite.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/src/addins/MonoDevelop.UnitTesting.NUnit/MonoDevelop.UnitTesting.NUnit/NUnitProjectTestSuite.cs b/main/src/addins/MonoDevelop.UnitTesting.NUnit/MonoDevelop.UnitTesting.NUnit/NUnitProjectTestSuite.cs
index 5754973567..44e028fb1a 100644
--- a/main/src/addins/MonoDevelop.UnitTesting.NUnit/MonoDevelop.UnitTesting.NUnit/NUnitProjectTestSuite.cs
+++ b/main/src/addins/MonoDevelop.UnitTesting.NUnit/MonoDevelop.UnitTesting.NUnit/NUnitProjectTestSuite.cs
@@ -79,6 +79,9 @@ namespace MonoDevelop.UnitTesting.NUnit
public static NUnitProjectTestSuite CreateTest (DotNetProject project)
{
+ if (project.TargetFramework.Id.Identifier == ".NETCoreApp")
+ return null;
+
if (!project.ParentSolution.GetConfiguration (IdeApp.Workspace.ActiveConfiguration).BuildEnabledForItem (project))
return null;