File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/ModelContextProtocol.Core/Client Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ public async Task<ITransport> ConnectAsync(CancellationToken cancellationToken =
156
156
// up the encoding from Console.InputEncoding. As such, when not targeting .NET Core,
157
157
// we temporarily change Console.InputEncoding to no-BOM UTF-8 around the Process.Start
158
158
// call, to ensure it picks up the correct encoding.
159
- #if ! NET
159
+
160
160
Encoding originalInputEncoding = Console . InputEncoding ;
161
161
if ( HasConsole ( ) )
162
162
{
@@ -169,7 +169,7 @@ public async Task<ITransport> ConnectAsync(CancellationToken cancellationToken =
169
169
Console . InputEncoding = originalInputEncoding ;
170
170
}
171
171
}
172
- #endif
172
+
173
173
processStarted = process . Start ( ) ;
174
174
175
175
if ( ! processStarted )
You can’t perform that action at this time.
0 commit comments