Fix Microsoft.PowerShell.ConsoleHost/map.json

This commit is contained in:
Sergei Vorobev 2016-06-30 16:42:58 -07:00
parent 777ba09bce
commit 916d17e958
2 changed files with 11 additions and 2 deletions

View file

@ -841,7 +841,16 @@ function Get-Mappings
{
$map = @{}
$mapFiles | % {
$rawHashtable = $_ | Get-Content -Raw | ConvertFrom-Json | Convert-PSObjectToHashtable
$file = $_
try
{
$rawHashtable = $_ | Get-Content -Raw | ConvertFrom-Json | Convert-PSObjectToHashtable
}
catch
{
Write-Error "Exception, when processing $($file.FullName): $_"
}
$mapRoot = Split-Path $_.FullName
if ($KeepRelativePaths)
{

View file

@ -30,5 +30,5 @@
"monad/src/host/msh/resources/ManagedEntranceStrings.resx": "resources/ManagedEntranceStrings.resx",
"monad/src/singleshell/installer/EngineInstaller.cs": "singleshell/installer/EngineInstaller.cs",
"monad/src/host/msh/ConsoleHostRawUserInterface.cs": "host/msh/ConsoleHostRawUserInterface.cs",
"monad/src/host/msh/ConsoleHost.cs": "host/msh/ConsoleHost.cs",
"monad/src/host/msh/ConsoleHost.cs": "host/msh/ConsoleHost.cs"
}