Skip to content

Commit bfaad3f

Browse files
committed
Programmatic update of core console host rename
1 parent 5abda1c commit bfaad3f

22 files changed

Lines changed: 33 additions & 33 deletions

File tree

PowerShellGitHubDev.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function Start-PSBuild {
103103
$Top = "$PSScriptRoot\src\Microsoft.PowerShell.ConsoleHost"
104104
$Framework = 'net451'
105105
} else {
106-
$Top = "$PSScriptRoot/src/Microsoft.PowerShell.Host"
106+
$Top = "$PSScriptRoot/src/Microsoft.PowerShell.CoreConsoleHost"
107107
$Framework = 'netstandardapp1.5'
108108
}
109109

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ test_script:
3535
$ErrorActionPreference = 'Stop'
3636
#
3737
# CoreCLR
38-
$env:CoreOutput = "$pwd\src\Microsoft.PowerShell.Host\bin\Debug\netstandardapp1.5\win81-x64"
38+
$env:CoreOutput = "$pwd\src\Microsoft.PowerShell.CoreConsoleHost\bin\Debug\netstandardapp1.5\win81-x64"
3939
Write-Host -Foreground Green 'Run CoreCLR tests'
4040
$testResultsFile = "$pwd\TestsResults.xml"
4141
& ("$env:CoreOutput\powershell.exe") -c "Invoke-Pester test/powershell -OutputFormat NUnitXml -OutputFile $testResultsFile"

docs/building/linux.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Start-PSBuild
105105

106106
Congratulations! If everything went right, PowerShell is now built.
107107
The `Start-PSBuild` script will output the location of the executable:
108-
`./src/Microsoft.PowerShell.Host/bin/Linux/netstandardapp1.5/ubuntu.14.04-x64/powershell`.
108+
`./src/Microsoft.PowerShell.CoreConsoleHost/bin/Linux/netstandardapp1.5/ubuntu.14.04-x64/powershell`.
109109

110110
> Note that the `./build.sh` script is deprecated and will be removed
111111
@@ -131,14 +131,14 @@ make test
131131
popd
132132
```
133133

134-
This library will be emitted in the `src/Microsoft.PowerShell.Host`
134+
This library will be emitted in the `src/Microsoft.PowerShell.CoreConsoleHost`
135135
project, where `dotnet` consumes it as "content" and thus
136136
automatically deploys it.
137137

138138
Build the managed projects
139139
--------------------------
140140

141-
The `Microsoft.PowerShell.Host` project is the cross-platform host for
141+
The `Microsoft.PowerShell.CoreConsoleHost` project is the cross-platform host for
142142
PowerShell targetting .NET Core. It is the top level project, so
143143
`dotnet build` transitively builds all its dependencies, and emits a
144144
`powershell` executable. The `--configuration Linux` flag is
@@ -147,7 +147,7 @@ defined (see [issue #673][]).
147147

148148
```sh
149149
dotnet restore
150-
cd src/Microsoft.PowerShell.Host
150+
cd src/Microsoft.PowerShell.CoreConsoleHost
151151
dotnet build --configuration Linux
152152
```
153153

docs/building/osx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.
3838

3939
The output directory will be slightly different because your runtime
4040
identifier is different. PowerShell will be at
41-
`./src/Microsoft.PowerShell.Host/bin/Linux/netstandardapp1.5/osx.10.11-x64/powershell`,
41+
`./src/Microsoft.PowerShell.CoreConsoleHost/bin/Linux/netstandardapp1.5/osx.10.11-x64/powershell`,
4242
or `osx.10.10` depending on your operating system version. Note that
4343
configration is still `Linux` because it would be silly to make yet
4444
another separate configuration when it's used soley to work-around a

docs/building/windows-core.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,19 @@ Start-PSBuild
7070
```
7171

7272
Congratulations! If everything went right, PowerShell is now built and
73-
executable as `./src/Microsoft.PowerShell.Host/bin/Debug/netstandardapp1.5/win10-x64/powershell`.
73+
executable as `./src/Microsoft.PowerShell.CoreConsoleHost/bin/Debug/netstandardapp1.5/win10-x64/powershell`.
7474

7575
This location is of the form
7676
`./[project]/bin/[configuration]/[framework]/[rid]/[binary name]`, and
77-
our project is `Microsoft.PowerShell.Host`, configuration is `Debug`
77+
our project is `Microsoft.PowerShell.CoreConsoleHost`, configuration is `Debug`
7878
by default, framework is `netstandardapp1.5`, runtime identifier is
7979
**probably** `win10-x64` (but will depend on your operating system;
8080
don't worry, `dotnet --info` will tell you what it was), and binary
8181
name is `powershell`. The function `Get-PSOutput` will return the path
8282
to the executable; thus you can execute the development copy via `&
8383
(Get-PSOutput)`.
8484

85-
The `Microsoft.PowerShell.Host` project is the cross-platform host for
85+
The `Microsoft.PowerShell.CoreConsoleHost` project is the cross-platform host for
8686
PowerShell targetting .NET Core. It is the top level project, so
8787
`dotnet build` transitively builds all its dependencies, and emits a
8888
`powershell` executable. The cross-platform host has built-in

mapping.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,12 +1187,12 @@
11871187
"src/monad/monad/miscfiles/modules/Microsoft.PowerShell.Archive/ArchiveResources.psd1": "src/Modules/Microsoft.PowerShell.Archive/ArchiveResources.psd1",
11881188
"src/monad/monad/miscfiles/modules/Microsoft.PowerShell.Archive/Microsoft.PowerShell.Archive.psd1": "src/Modules/Microsoft.PowerShell.Archive/Microsoft.PowerShell.Archive.psd1",
11891189
"src/monad/monad/miscfiles/modules/Microsoft.PowerShell.Archive/Microsoft.PowerShell.Archive.psm1": "src/Modules/Microsoft.PowerShell.Archive/Microsoft.PowerShell.Archive.psm1",
1190-
"src/monad/monad/miscfiles/modules/Microsoft.PowerShell.Diagnostics/CoreClr/Microsoft.PowerShell.Diagnostics.psd1": "src/Microsoft.PowerShell.Host/Modules/Microsoft.PowerShell.Diagnostics/Microsoft.PowerShell.Diagnostics.psd1",
1190+
"src/monad/monad/miscfiles/modules/Microsoft.PowerShell.Diagnostics/CoreClr/Microsoft.PowerShell.Diagnostics.psd1": "src/Microsoft.PowerShell.CoreConsoleHost/Modules/Microsoft.PowerShell.Diagnostics/Microsoft.PowerShell.Diagnostics.psd1",
11911191
"src/monad/monad/miscfiles/modules/Microsoft.PowerShell.Diagnostics/Microsoft.PowerShell.Diagnostics.psd1": "src/Microsoft.PowerShell.ConsoleHost/Modules/Microsoft.PowerShell.Diagnostics/Microsoft.PowerShell.Diagnostics.psd1",
1192-
"src/monad/monad/miscfiles/modules/Microsoft.PowerShell.Host/Microsoft.PowerShell.Host.psd1": "src/Modules/Microsoft.PowerShell.Host/Microsoft.PowerShell.Host.psd1",
1192+
"src/monad/monad/miscfiles/modules/Microsoft.PowerShell.CoreConsoleHost/Microsoft.PowerShell.CoreConsoleHost.psd1": "src/Modules/Microsoft.PowerShell.CoreConsoleHost/Microsoft.PowerShell.CoreConsoleHost.psd1",
11931193
"src/monad/monad/miscfiles/modules/Microsoft.PowerShell.Management/Microsoft.PowerShell.Management.psd1": "src/Modules/Microsoft.PowerShell.Management/Microsoft.PowerShell.Management.psd1",
11941194
"src/monad/monad/miscfiles/modules/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.psd1": "src/Modules/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.psd1",
1195-
"src/monad/monad/miscfiles/modules/Microsoft.PowerShell.Utility/CoreClr/Microsoft.PowerShell.Utility.psd1": "src/Microsoft.PowerShell.Host/Modules/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1",
1195+
"src/monad/monad/miscfiles/modules/Microsoft.PowerShell.Utility/CoreClr/Microsoft.PowerShell.Utility.psd1": "src/Microsoft.PowerShell.CoreConsoleHost/Modules/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1",
11961196
"src/monad/monad/miscfiles/modules/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1": "src/Microsoft.PowerShell.ConsoleHost/Modules/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1",
11971197
"src/monad/monad/miscfiles/modules/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psm1": "src/Modules/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psm1",
11981198
"src/monad/monad/miscfiles/modules/Microsoft.WSMan.Management/Microsoft.WSMan.Management.psd1": "src/Modules/Microsoft.WSMan.Management/Microsoft.WSMan.Management.psd1",

src/Microsoft.PowerShell.CoreConsoleHost/host.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Microsoft.PowerShell.Host
1+
namespace Microsoft.PowerShell.CoreConsoleHost
22
{
33
using System;
44
using System.Globalization;

src/Microsoft.PowerShell.CoreConsoleHost/main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Microsoft.PowerShell.Host
1+
namespace Microsoft.PowerShell.CoreConsoleHost
22
{
33
using System;
44
using System.Collections.Generic;

src/Microsoft.PowerShell.CoreConsoleHost/rawui.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
using System.Reflection;
1111
using System.Runtime.InteropServices;
1212

13-
namespace Microsoft.PowerShell.Host
13+
namespace Microsoft.PowerShell.CoreConsoleHost
1414
{
1515
// this is all from https://msdn.microsoft.com/en-us/library/ee706570%28v=vs.85%29.aspx
1616

src/Microsoft.PowerShell.CoreConsoleHost/readline.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Microsoft.PowerShell.Host
1+
namespace Microsoft.PowerShell.CoreConsoleHost
22
{
33
using System;
44
using System.Collections.ObjectModel;

0 commit comments

Comments
 (0)