diff --git a/src/OmniSharp.Host/MSBuild/Discovery/Extensions.cs b/src/OmniSharp.Host/MSBuild/Discovery/Extensions.cs index fdaafca040..9325d73039 100644 --- a/src/OmniSharp.Host/MSBuild/Discovery/Extensions.cs +++ b/src/OmniSharp.Host/MSBuild/Discovery/Extensions.cs @@ -83,7 +83,7 @@ private static int GetInstanceFeatureScore(MSBuildInstance i) score++; if (i.IsInvalidVisualStudio()) - score--; + return int.MinValue; else score++;