fix a bug in the default TFM define generation

This commit is contained in:
Andrew Stanton-Nurse 2015-12-10 12:19:24 -08:00
parent 8b12fa9ffe
commit b25c2743ca

View file

@ -22,6 +22,10 @@ namespace NuGet.Frameworks
}
var versionPart = original.Substring(index);
if (versionPart.Length >= 2)
{
return original;
}
// Assume if the version part was preserved then leave it alone
if (versionPart.IndexOf('.') != -1)