From d181ef787b4e9348ff777d70fc21dfa595c3ea98 Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Tue, 5 Apr 2016 13:21:31 -0700 Subject: [PATCH] Make Start-ResGen generate folders for cs files --- PowerShellGitHubDev.psm1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PowerShellGitHubDev.psm1 b/PowerShellGitHubDev.psm1 index f584da953c..d6c6cafd76 100644 --- a/PowerShellGitHubDev.psm1 +++ b/PowerShellGitHubDev.psm1 @@ -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 } } }