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

Commit bf7bf7e

Browse files
committed
Add dir suffix to Env.ReferenceAssembyPath
1 parent a9cd318 commit bf7bf7e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/ServiceStack.Text/Env.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public static string ReferenceAssembyPath
106106
}
107107
if (v4Dirs.Length > 0)
108108
{
109-
referenceAssembyPath = v4Dirs[v4Dirs.Length - 1]; //latest v4
109+
referenceAssembyPath = v4Dirs[v4Dirs.Length - 1] + @"\"; //latest v4
110110
}
111111
else
112112
{

tests/ServiceStack.Text.Tests/PclApiTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ public void Can_scan_reference_assemblies()
1212

1313
PclExport.Instance.GetDirectoryNames(refDir).PrintDump();
1414
PclExport.Instance.GetDirectoryNames(refDir, "v4*").PrintDump();
15+
16+
var winPath = PclExport.Instance.GetEnvironmentVariable("SYSTEMROOT") ?? @"C:\Windows";
17+
var gacPath = winPath + @"\Microsoft.NET\Framework\";
18+
PclExport.Instance.GetDirectoryNames(gacPath, "v4*").PrintDump();
1519
}
1620
}
1721
}

0 commit comments

Comments
 (0)