Skip to content

Commit 235a4f6

Browse files
committed
Add CoreCLR compile wrapper around System.Reflection import
1 parent 3d8a322 commit 235a4f6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/PowerShellEditorServices.Test.Host/ServerTestsBase.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,19 @@
1010
using System.Collections.Concurrent;
1111
using System.Diagnostics;
1212
using System.IO;
13-
using System.Reflection;
1413
using System.Text;
1514
using System.Threading;
1615
using System.Threading.Tasks;
1716

17+
#if CoreCLR
18+
using System.Reflection;
19+
#endif
20+
1821
namespace Microsoft.PowerShell.EditorServices.Test.Host
1922
{
2023
public class ServerTestsBase
2124
{
22-
private static int sessionCounter;
25+
private static int sessionCounter;
2326
private Process serviceProcess;
2427
protected IMessageSender messageSender;
2528
protected IMessageHandlers messageHandlers;
@@ -47,7 +50,7 @@ protected async Task<Tuple<int, int>> LaunchService(
4750
FileVersionInfo fileVersionInfo =
4851
FileVersionInfo.GetVersionInfo(assemblyPath);
4952

50-
string sessionPath =
53+
string sessionPath =
5154
Path.Combine(
5255
Path.GetDirectoryName(assemblyPath), $"session-{++sessionCounter}.json");
5356

0 commit comments

Comments
 (0)