Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit ffdf69c

Browse files
committed
Add v4.6 and v4.5.2 to reference assemblies search list
1 parent ef15f20 commit ffdf69c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ServiceStack.Text/Env.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ public static string ReferenceAssembyPath
8787
{
8888
var programFilesPath = PclExport.Instance.GetEnvironmentVariable("ProgramFiles(x86)") ?? @"C:\Program Files (x86)";
8989
var netFxReferenceBasePath = programFilesPath + @"\Reference Assemblies\Microsoft\Framework\.NETFramework\";
90-
if ((netFxReferenceBasePath + @"v4.5.1\").DirectoryExists())
90+
if ((netFxReferenceBasePath + @"v4.6\").DirectoryExists())
91+
referenceAssembyPath = netFxReferenceBasePath + @"v4.6\";
92+
else if ((netFxReferenceBasePath + @"v4.5.2\").DirectoryExists())
93+
referenceAssembyPath = netFxReferenceBasePath + @"v4.5.2\";
94+
else if ((netFxReferenceBasePath + @"v4.5.1\").DirectoryExists())
9195
referenceAssembyPath = netFxReferenceBasePath + @"v4.5.1\";
9296
else if ((netFxReferenceBasePath + @"v4.5\").DirectoryExists())
9397
referenceAssembyPath = netFxReferenceBasePath + @"v4.5\";

0 commit comments

Comments
 (0)