Merge pull request #1738 from PowerShell/cchen/bugfix

Remove Windows branding
This commit is contained in:
Jason Shirk 2016-08-11 14:19:24 -07:00 committed by GitHub
commit e4e18b97b1
2 changed files with 13 additions and 0 deletions

View file

@ -114,12 +114,21 @@ namespace Microsoft.PowerShell
int exitCode = 0;
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(
configuration,
ManagedEntranceStrings.ShellBanner,
ManagedEntranceStrings.ShellHelp,
warning == null ? null : warning.Message,
args);
#endif
}
catch (System.Management.Automation.Host.HostException e)
{

View file

@ -119,6 +119,10 @@
</resheader>
<data name="ShellBanner" xml:space="preserve">
<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>
</data>
<data name="ShellHelp" xml:space="preserve">