Make Start-ResGen generate folders for cs files

This commit is contained in:
Sergei Vorobev 2016-04-05 13:21:31 -07:00
parent ff921297a9
commit d181ef787b

View File

@ -521,7 +521,8 @@ function Start-ResGen
$genSource = Get-StronglyTypeCsFileForResx -xml $xml -ModuleName $module -ClassName $className
$outPath = "$PSScriptRoot/src/windows-build/gen/$module/$className.cs"
log "ResGen for $outPath"
Set-Content -Encoding Ascii -Path "$PSScriptRoot/src/windows-build/gen/$module/$className.cs" -Value $genSource
mkdir -ErrorAction SilentlyContinue (Split-Path $outPath) > $null
Set-Content -Encoding Ascii -Path $outPath -Value $genSource
}
}
}