Skip to content

Commit

Permalink
Fix for issue where xlftool.exe is not able to update neutral xlf fil…
Browse files Browse the repository at this point in the history
…e if we update any existing resource string (#305)

* Fix for issue where xlftool.exe is not able to update neutral xlf file if we update any existing resource string
  • Loading branch information
Faizan2304 authored Dec 26, 2016
1 parent 9a492ea commit 055287c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion scripts/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ Param(
[Alias("ff")]
[System.Boolean] $FailFast = $true,

[Parameter(Mandatory=$false)]
[Alias("xlf")]
[Switch] $SyncXlf = $false,

[Parameter(Mandatory=$false)]
[Alias("loc")]
[Switch] $LocalizedBuild = $false,
Expand Down Expand Up @@ -155,7 +159,7 @@ function Invoke-Build

Write-Log ".. .. Build: Source: $TPB_Solution"
Write-Verbose "$dotnetExe build $TPB_Solution --configuration $TPB_Configuration --version-suffix $TPB_VersionSuffix -v:minimal -p:Version=$TPB_Version"
& $dotnetExe build $TPB_Solution --configuration $TPB_Configuration --version-suffix $TPB_VersionSuffix -v:minimal -p:Version=$TPB_Version -p:CIBuild=$TPB_CIBuild -p:LocalizedBuild=$LocalizedBuild
& $dotnetExe build $TPB_Solution --configuration $TPB_Configuration --version-suffix $TPB_VersionSuffix -v:minimal -p:Version=$TPB_Version -p:CIBuild=$TPB_CIBuild -p:LocalizedBuild=$LocalizedBuild -p:SyncXlf=$SyncXlf
Write-Log ".. .. Build: Complete."

if ($lastExitCode -ne 0) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/TestPlatform.targets
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<CallTarget Targets="CreateLocalizeXLF;CreateLocalizeResx"/>
</Target>

<Target Name="CreateLocalizeXLF">
<Target Name="CreateLocalizeXLF" Condition="'$(SyncXlf)' == 'true'">
<CreateItem Include="@(ResourceFiles)" AdditionalMetadata="Language=%(ResxLang.Identity)">
<Output ItemName="LocResourceFile" TaskParameter="Include"/>
</CreateItem>
Expand Down

0 comments on commit 055287c

Please sign in to comment.