Merge pull request #1738 from PowerShell/cchen/bugfix
Remove Windows branding
This commit is contained in:
commit
e4e18b97b1
2 changed files with 13 additions and 0 deletions
|
@ -114,12 +114,21 @@ namespace Microsoft.PowerShell
|
||||||
int exitCode = 0;
|
int exitCode = 0;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
#if CORECLR
|
||||||
|
exitCode = Microsoft.PowerShell.ConsoleShell.Start(
|
||||||
|
configuration,
|
||||||
|
ManagedEntranceStrings.ShellBannerNonWindowsPowerShell,
|
||||||
|
ManagedEntranceStrings.ShellHelp,
|
||||||
|
warning == null ? null : warning.Message,
|
||||||
|
args);
|
||||||
|
#else
|
||||||
exitCode = Microsoft.PowerShell.ConsoleShell.Start(
|
exitCode = Microsoft.PowerShell.ConsoleShell.Start(
|
||||||
configuration,
|
configuration,
|
||||||
ManagedEntranceStrings.ShellBanner,
|
ManagedEntranceStrings.ShellBanner,
|
||||||
ManagedEntranceStrings.ShellHelp,
|
ManagedEntranceStrings.ShellHelp,
|
||||||
warning == null ? null : warning.Message,
|
warning == null ? null : warning.Message,
|
||||||
args);
|
args);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
catch (System.Management.Automation.Host.HostException e)
|
catch (System.Management.Automation.Host.HostException e)
|
||||||
{
|
{
|
||||||
|
|
|
@ -119,6 +119,10 @@
|
||||||
</resheader>
|
</resheader>
|
||||||
<data name="ShellBanner" xml:space="preserve">
|
<data name="ShellBanner" xml:space="preserve">
|
||||||
<value>Windows PowerShell
|
<value>Windows PowerShell
|
||||||
|
Copyright (C) 2016 Microsoft Corporation. All rights reserved.</value>
|
||||||
|
</data>
|
||||||
|
<data name="ShellBannerNonWindowsPowerShell" xml:space="preserve">
|
||||||
|
<value>PowerShell
|
||||||
Copyright (C) 2016 Microsoft Corporation. All rights reserved.</value>
|
Copyright (C) 2016 Microsoft Corporation. All rights reserved.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ShellHelp" xml:space="preserve">
|
<data name="ShellHelp" xml:space="preserve">
|
||||||
|
|
Loading…
Reference in a new issue