From c0db699e83d8b38e5e3dc8f7c1cca481b0d2a0f0 Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Fri, 17 Jun 2016 06:24:12 -0700 Subject: [PATCH 1/3] Add missed resx file into map.json --- src/Microsoft.PowerShell.Commands.Management/map.json | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Microsoft.PowerShell.Commands.Management/map.json b/src/Microsoft.PowerShell.Commands.Management/map.json index 98ea88c235..7d4e51d0e0 100644 --- a/src/Microsoft.PowerShell.Commands.Management/map.json +++ b/src/Microsoft.PowerShell.Commands.Management/map.json @@ -17,6 +17,7 @@ "monad/src/commands/management/ClearContentCommand.cs": "commands/management/ClearContentCommand.cs", "monad/src/commands/management/resources/ProcessCommandHelpResources.resx": "resources/ProcessCommandHelpResources.resx", "monad/src/commands/management/resources/ComputerResources.resx": "resources/ComputerResources.resx", + "monad/src/commands/management/resources/ComputerInfoResources.resx": "resources/ComputerInfoResources.resx", "monad/src/commands/management/SetClipboardCommand.cs": "commands/management/SetClipboardCommand.cs", "monad/src/commands/management/ResolvePathCommand.cs": "commands/management/ResolvePathCommand.cs", "monad/src/commands/management/resources/ProcessResources.resx": "resources/ProcessResources.resx", From 838ad202faf8fa50be87f3b6369378d07a6b4dc1 Mon Sep 17 00:00:00 2001 From: PowerShell Team Date: Fri, 17 Jun 2016 06:24:57 -0700 Subject: [PATCH 2/3] Add missed resx file from [SD:715912] commit 77eda78 --- .../resources/ComputerInfoResources.resx | 144 ++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 src/Microsoft.PowerShell.Commands.Management/resources/ComputerInfoResources.resx diff --git a/src/Microsoft.PowerShell.Commands.Management/resources/ComputerInfoResources.resx b/src/Microsoft.PowerShell.Commands.Management/resources/ComputerInfoResources.resx new file mode 100644 index 0000000000..ebcfddb5bf --- /dev/null +++ b/src/Microsoft.PowerShell.Commands.Management/resources/ComputerInfoResources.resx @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Loading operating system information + + + Loading hot-patch information + + + Loading registry information + + + Loading BIOS information + + + Loading motherboard information + + + Loading Computer information + + + Loading processor information + + + Loading network adapter information + + \ No newline at end of file From 7d9046ea05215bbc15acb6918c5ae508a8570443 Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Fri, 17 Jun 2016 07:51:32 -0700 Subject: [PATCH 3/3] Fix wrong heuristic to start ResGen --- build.psm1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.psm1 b/build.psm1 index 2a109da28e..d5af6b1d35 100644 --- a/build.psm1 +++ b/build.psm1 @@ -145,7 +145,8 @@ function Start-PSBuild { } # handle ResGen - if ($ResGen -or -not (Test-Path "$($Options.Top)/gen")) + # Heuristic to run ResGen on the fresh machine + if ($ResGen -or -not (Test-Path "$PSScriptRoot/src/Microsoft.PowerShell.ConsoleHost/gen")) { log "Run ResGen (generating C# bindings for resx files)" Start-ResGen