mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Programmatic update of core console host rename
This commit is contained in:
1 parent
5abda1c223
commit
bfaad3f057
22 files changed
+33
-33
No files matched your search
@@ -1,4 +1,4 @@
|
||||
namespace Microsoft.PowerShell.Host
|
||||
namespace Microsoft.PowerShell.CoreConsoleHost
|
||||
{
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Microsoft.PowerShell.Host
|
||||
namespace Microsoft.PowerShell.CoreConsoleHost
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -10,7 +10,7 @@ using System.Globalization;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Microsoft.PowerShell.Host
|
||||
namespace Microsoft.PowerShell.CoreConsoleHost
|
||||
{
|
||||
// this is all from https://msdn.microsoft.com/en-us/library/ee706570%28v=vs.85%29.aspx
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Microsoft.PowerShell.Host
|
||||
namespace Microsoft.PowerShell.CoreConsoleHost
|
||||
{
|
||||
using System;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Microsoft.PowerShell.Host
|
||||
namespace Microsoft.PowerShell.CoreConsoleHost
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -2055,7 +2055,7 @@ namespace System.Management.Automation.Runspaces
|
||||
// Only load the core snapins at this point...
|
||||
if (Environment.GetEnvironmentVariable("PowerShellMinimal") != null)
|
||||
{
|
||||
if (si.Name.Equals("Microsoft.PowerShell.Host", StringComparison.OrdinalIgnoreCase))
|
||||
if (si.Name.Equals("Microsoft.PowerShell.CoreConsoleHost", StringComparison.OrdinalIgnoreCase))
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
@@ -5530,7 +5530,7 @@ if($paths) {
|
||||
"Microsoft.PowerShell.Utility",
|
||||
"Microsoft.PowerShell.Management",
|
||||
"Microsoft.PowerShell.Diagnostics",
|
||||
"Microsoft.PowerShell.Host",
|
||||
"Microsoft.PowerShell.CoreConsoleHost",
|
||||
"Microsoft.PowerShell.Security",
|
||||
"Microsoft.WSMan.Management"
|
||||
};
|
||||
@@ -5548,14 +5548,14 @@ if($paths) {
|
||||
{ "Microsoft.PowerShell.Utility", "Microsoft.PowerShell.Commands.Utility"},
|
||||
{ "Microsoft.PowerShell.Management", "Microsoft.PowerShell.Commands.Management"},
|
||||
{ "Microsoft.PowerShell.Diagnostics", "Microsoft.PowerShell.Commands.Diagnostics"},
|
||||
{ "Microsoft.PowerShell.Host", "Microsoft.PowerShell.ConsoleHost"},
|
||||
{ "Microsoft.PowerShell.CoreConsoleHost", "Microsoft.PowerShell.ConsoleHost"},
|
||||
};
|
||||
internal static Dictionary<string, string> NestedModuleEngineModuleMapping = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
|
||||
{
|
||||
{ "Microsoft.PowerShell.Commands.Utility", "Microsoft.PowerShell.Utility"},
|
||||
{ "Microsoft.PowerShell.Commands.Management", "Microsoft.PowerShell.Management"},
|
||||
{ "Microsoft.PowerShell.Commands.Diagnostics", "Microsoft.PowerShell.Diagnostics"},
|
||||
{ "Microsoft.PowerShell.ConsoleHost", "Microsoft.PowerShell.Host"},
|
||||
{ "Microsoft.PowerShell.ConsoleHost", "Microsoft.PowerShell.CoreConsoleHost"},
|
||||
{ "Microsoft.PowerShell.Security", "Microsoft.PowerShell.Security"},
|
||||
{ "Microsoft.WSMan.Management", "Microsoft.WSMan.Management"},
|
||||
};
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace System.Management.Automation
|
||||
engineModuleHelpFileCache.Add("Microsoft.PowerShell.Diagnostics", "Microsoft.PowerShell.Commands.Diagnostics.dll-Help.xml");
|
||||
engineModuleHelpFileCache.Add("Microsoft.PowerShell.Core", "System.Management.Automation.dll-Help.xml");
|
||||
engineModuleHelpFileCache.Add("Microsoft.PowerShell.Utility", "Microsoft.PowerShell.Commands.Utility.dll-Help.xml");
|
||||
engineModuleHelpFileCache.Add("Microsoft.PowerShell.Host", "Microsoft.PowerShell.ConsoleHost.dll-Help.xml");
|
||||
engineModuleHelpFileCache.Add("Microsoft.PowerShell.CoreConsoleHost", "Microsoft.PowerShell.ConsoleHost.dll-Help.xml");
|
||||
engineModuleHelpFileCache.Add("Microsoft.PowerShell.Management", "Microsoft.PowerShell.Commands.Management.dll-Help.xml");
|
||||
engineModuleHelpFileCache.Add("Microsoft.PowerShell.Security", "Microsoft.PowerShell.Security.dll-Help.xml");
|
||||
engineModuleHelpFileCache.Add("Microsoft.WSMan.Management", "Microsoft.Wsman.Management.dll-Help.xml");
|
||||
|
||||
@@ -161,7 +161,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
metadataCache.Add("Microsoft.PowerShell.Diagnostics", "http://go.microsoft.com/fwlink/?linkid=390783");
|
||||
metadataCache.Add("Microsoft.PowerShell.Core", "http://go.microsoft.com/fwlink/?linkid=390782");
|
||||
metadataCache.Add("Microsoft.PowerShell.Utility", "http://go.microsoft.com/fwlink/?linkid=390787");
|
||||
metadataCache.Add("Microsoft.PowerShell.Host", "http://go.microsoft.com/fwlink/?linkid=390784");
|
||||
metadataCache.Add("Microsoft.PowerShell.CoreConsoleHost", "http://go.microsoft.com/fwlink/?linkid=390784");
|
||||
metadataCache.Add("Microsoft.PowerShell.Management", " http://go.microsoft.com/fwlink/?linkid=390785");
|
||||
metadataCache.Add("Microsoft.PowerShell.Security", " http://go.microsoft.com/fwlink/?linkid=390786");
|
||||
metadataCache.Add("Microsoft.WSMan.Management", "http://go.microsoft.com/fwlink/?linkid=390788");
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace System.Management.Automation
|
||||
|
||||
//Name of default mshsnapins
|
||||
internal const string CoreMshSnapinName = "Microsoft.PowerShell.Core";
|
||||
internal const string HostMshSnapinName = "Microsoft.PowerShell.Host";
|
||||
internal const string HostMshSnapinName = "Microsoft.PowerShell.CoreConsoleHost";
|
||||
internal const string ManagementMshSnapinName = "Microsoft.PowerShell.Management";
|
||||
internal const string SecurityMshSnapinName = "Microsoft.PowerShell.Security";
|
||||
internal const string UtilityMshSnapinName = "Microsoft.PowerShell.Utility";
|
||||
@@ -1412,7 +1412,7 @@ namespace System.Management.Automation
|
||||
new DefaultPSSnapInInformation("Microsoft.PowerShell.Diagnostics", "Microsoft.PowerShell.Commands.Diagnostics", null,
|
||||
"GetEventResources,Description", "GetEventResources,Vendor"),
|
||||
|
||||
new DefaultPSSnapInInformation("Microsoft.PowerShell.Host", "Microsoft.PowerShell.ConsoleHost", null,
|
||||
new DefaultPSSnapInInformation("Microsoft.PowerShell.CoreConsoleHost", "Microsoft.PowerShell.ConsoleHost", null,
|
||||
"HostMshSnapInResources,Description","HostMshSnapInResources,Vendor"),
|
||||
#endif
|
||||
CoreSnapin,
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace ConsoleApplication
|
||||
var outputPath = "../TypeCatalogGen/powershell.inc";
|
||||
|
||||
// Get a context for our top level project
|
||||
var context = ProjectContext.Create("../Microsoft.PowerShell.Host", NuGetFramework.Parse("netstandardapp1.5"));
|
||||
var context = ProjectContext.Create("../Microsoft.PowerShell.CoreConsoleHost", NuGetFramework.Parse("netstandardapp1.5"));
|
||||
|
||||
System.IO.File.WriteAllLines(outputPath,
|
||||
// Get the target for the current runtime
|
||||
|
||||
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.4)
|
||||
project(PSL-NATIVE)
|
||||
|
||||
add_compile_options(-std=c++11 -Wall -Werror)
|
||||
set(LIBRARY_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/../Microsoft.PowerShell.Host")
|
||||
set(LIBRARY_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/../Microsoft.PowerShell.CoreConsoleHost")
|
||||
|
||||
# test in BUILD_DIR
|
||||
enable_testing()
|
||||
|
||||
Reference in new issue
Block a user