mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Programmatic update of core console host rename
This commit is contained in:
@@ -105,7 +105,7 @@ Start-PSBuild
|
||||
|
||||
Congratulations! If everything went right, PowerShell is now built.
|
||||
The `Start-PSBuild` script will output the location of the executable:
|
||||
`./src/Microsoft.PowerShell.Host/bin/Linux/netstandardapp1.5/ubuntu.14.04-x64/powershell`.
|
||||
`./src/Microsoft.PowerShell.CoreConsoleHost/bin/Linux/netstandardapp1.5/ubuntu.14.04-x64/powershell`.
|
||||
|
||||
> Note that the `./build.sh` script is deprecated and will be removed
|
||||
|
||||
@@ -131,14 +131,14 @@ make test
|
||||
popd
|
||||
```
|
||||
|
||||
This library will be emitted in the `src/Microsoft.PowerShell.Host`
|
||||
This library will be emitted in the `src/Microsoft.PowerShell.CoreConsoleHost`
|
||||
project, where `dotnet` consumes it as "content" and thus
|
||||
automatically deploys it.
|
||||
|
||||
Build the managed projects
|
||||
--------------------------
|
||||
|
||||
The `Microsoft.PowerShell.Host` project is the cross-platform host for
|
||||
The `Microsoft.PowerShell.CoreConsoleHost` project is the cross-platform host for
|
||||
PowerShell targetting .NET Core. It is the top level project, so
|
||||
`dotnet build` transitively builds all its dependencies, and emits a
|
||||
`powershell` executable. The `--configuration Linux` flag is
|
||||
@@ -147,7 +147,7 @@ defined (see [issue #673][]).
|
||||
|
||||
```sh
|
||||
dotnet restore
|
||||
cd src/Microsoft.PowerShell.Host
|
||||
cd src/Microsoft.PowerShell.CoreConsoleHost
|
||||
dotnet build --configuration Linux
|
||||
```
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ module.
|
||||
|
||||
The output directory will be slightly different because your runtime
|
||||
identifier is different. PowerShell will be at
|
||||
`./src/Microsoft.PowerShell.Host/bin/Linux/netstandardapp1.5/osx.10.11-x64/powershell`,
|
||||
`./src/Microsoft.PowerShell.CoreConsoleHost/bin/Linux/netstandardapp1.5/osx.10.11-x64/powershell`,
|
||||
or `osx.10.10` depending on your operating system version. Note that
|
||||
configration is still `Linux` because it would be silly to make yet
|
||||
another separate configuration when it's used soley to work-around a
|
||||
|
||||
@@ -70,11 +70,11 @@ Start-PSBuild
|
||||
```
|
||||
|
||||
Congratulations! If everything went right, PowerShell is now built and
|
||||
executable as `./src/Microsoft.PowerShell.Host/bin/Debug/netstandardapp1.5/win10-x64/powershell`.
|
||||
executable as `./src/Microsoft.PowerShell.CoreConsoleHost/bin/Debug/netstandardapp1.5/win10-x64/powershell`.
|
||||
|
||||
This location is of the form
|
||||
`./[project]/bin/[configuration]/[framework]/[rid]/[binary name]`, and
|
||||
our project is `Microsoft.PowerShell.Host`, configuration is `Debug`
|
||||
our project is `Microsoft.PowerShell.CoreConsoleHost`, configuration is `Debug`
|
||||
by default, framework is `netstandardapp1.5`, runtime identifier is
|
||||
**probably** `win10-x64` (but will depend on your operating system;
|
||||
don't worry, `dotnet --info` will tell you what it was), and binary
|
||||
@@ -82,7 +82,7 @@ name is `powershell`. The function `Get-PSOutput` will return the path
|
||||
to the executable; thus you can execute the development copy via `&
|
||||
(Get-PSOutput)`.
|
||||
|
||||
The `Microsoft.PowerShell.Host` project is the cross-platform host for
|
||||
The `Microsoft.PowerShell.CoreConsoleHost` project is the cross-platform host for
|
||||
PowerShell targetting .NET Core. It is the top level project, so
|
||||
`dotnet build` transitively builds all its dependencies, and emits a
|
||||
`powershell` executable. The cross-platform host has built-in
|
||||
|
||||
Reference in New Issue
Block a user