Skip to content

Commit 8f1cd23

Browse files
committed
Rename all instances of NanoServer to CoreCLR
1 parent 06cd427 commit 8f1cd23

File tree

20 files changed

+24
-24
lines changed

20 files changed

+24
-24
lines changed

src/PowerShellEditorServices.Channel.WebSocket/PowerShellEditorServices.Channel.WebSocket.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</ItemGroup>
3838

3939
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.6' ">
40-
<DefineConstants>$(DefineConstants);NanoServer</DefineConstants>
40+
<DefineConstants>$(DefineConstants);CoreCLR</DefineConstants>
4141
</PropertyGroup>
4242

4343
<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">

src/PowerShellEditorServices.Host/EditorServicesHost.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public EditorServicesHost(
7878
#endif
7979

8080
// Catch unhandled exceptions for logging purposes
81-
#if !NanoServer
81+
#if !CoreCLR
8282
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
8383
#endif
8484
}
@@ -96,7 +96,7 @@ public void StartLogging(string logFilePath, LogLevel logLevel)
9696
{
9797
Logger.Initialize(logFilePath, logLevel);
9898

99-
#if NanoServer
99+
#if CoreCLR
100100
FileVersionInfo fileVersionInfo =
101101
FileVersionInfo.GetVersionInfo(this.GetType().GetTypeInfo().Assembly.Location);
102102

@@ -122,7 +122,7 @@ public void StartLogging(string logFilePath, LogLevel logLevel)
122122
$" Name: {this.hostDetails.Name}" + newLine +
123123
$" ProfileId: {this.hostDetails.ProfileId}" + newLine +
124124
$" Version: {this.hostDetails.Version}" + newLine +
125-
#if !NanoServer
125+
#if !CoreCLR
126126
$" Arch: {processArchitecture}" + newLine + newLine +
127127
" Operating system details:" + newLine + newLine +
128128
$" Version: {osVersionString}" + newLine +
@@ -220,7 +220,7 @@ public void WaitForCompletion()
220220

221221
#region Private Methods
222222

223-
#if !NanoServer
223+
#if !CoreCLR
224224
static void CurrentDomain_UnhandledException(
225225
object sender,
226226
UnhandledExceptionEventArgs e)

src/PowerShellEditorServices.Host/PowerShellEditorServices.Host.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</ItemGroup>
3838

3939
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.6' ">
40-
<DefineConstants>$(DefineConstants);NanoServer</DefineConstants>
40+
<DefineConstants>$(DefineConstants);CoreCLR</DefineConstants>
4141
</PropertyGroup>
4242

4343
<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">

src/PowerShellEditorServices.Protocol/MessageProtocol/Channel/NamedPipeClientChannel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public NamedPipeClientChannel(string pipeName)
2222

2323
public override async Task WaitForConnection()
2424
{
25-
#if NanoServer
25+
#if CoreCLR
2626
await this.pipeClient.ConnectAsync();
2727
#else
2828
this.IsConnected = false;

src/PowerShellEditorServices.Protocol/MessageProtocol/Channel/NamedPipeServerChannel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public NamedPipeServerChannel(string pipeName)
2323

2424
public override async Task WaitForConnection()
2525
{
26-
#if NanoServer
26+
#if CoreCLR
2727
await this.pipeServer.WaitForConnectionAsync();
2828
#else
2929
await Task.Factory.FromAsync(this.pipeServer.BeginWaitForConnection, this.pipeServer.EndWaitForConnection, null);

src/PowerShellEditorServices.Protocol/MessageProtocol/Channel/StdioServerChannel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class StdioServerChannel : ChannelBase
2323

2424
protected override void Initialize(IMessageSerializer messageSerializer)
2525
{
26-
#if !NanoServer
26+
#if !CoreCLR
2727
// Ensure that the console is using UTF-8 encoding
2828
System.Console.InputEncoding = Encoding.UTF8;
2929
System.Console.OutputEncoding = Encoding.UTF8;

src/PowerShellEditorServices.Protocol/MessageProtocol/Channel/TcpSocketServerChannel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected override void Shutdown()
6060

6161
if (this.tcpClient != null)
6262
{
63-
#if NanoServer
63+
#if CoreCLR
6464
this.tcpClient.Dispose();
6565
#else
6666
this.tcpClient.Close();

src/PowerShellEditorServices.Protocol/PowerShellEditorServices.Protocol.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</ItemGroup>
3737

3838
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.6' ">
39-
<DefineConstants>$(DefineConstants);NanoServer</DefineConstants>
39+
<DefineConstants>$(DefineConstants);CoreCLR</DefineConstants>
4040
</PropertyGroup>
4141

4242
<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">

src/PowerShellEditorServices.Protocol/Server/DebugAdapter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ protected async Task HandleLaunchRequest(
163163

164164
if (workingDir == null)
165165
{
166-
#if NanoServer
166+
#if CoreCLR
167167
workingDir = AppContext.BaseDirectory;
168168
#else
169169
workingDir = Environment.CurrentDirectory;

src/PowerShellEditorServices/Language/AstOperations.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static public CommandCompletion GetCompletions(
4747
{
4848
var type = scriptAst.Extent.StartScriptPosition.GetType();
4949
var method =
50-
#if NanoServer
50+
#if CoreCLR
5151
type.GetMethod(
5252
"CloneWithNewOffset",
5353
BindingFlags.Instance | BindingFlags.NonPublic);

0 commit comments

Comments
 (0)