Skip to content

Commit

Permalink
Merge pull request #1175 from YuhanKun/patch-1
Browse files Browse the repository at this point in the history
Fix exception when targeting .NET Framework with .NET 7 installed
  • Loading branch information
CharliePoole authored Mar 23, 2022
2 parents cd8e03a + 8502562 commit 0d5ea36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NUnitEngine/nunit.engine/Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ public override Version GetClrVersionForFramework(Version frameworkVersion)
return new Version(5, 0, 1);
case 6:
return new Version(6, 0, 0);
case 7:
return new Version(7, 0, 0);
}

throw new ArgumentException($"Unknown .NET Core version: {frameworkVersion}", "version");
Expand Down

0 comments on commit 0d5ea36

Please sign in to comment.