Minimize duplicate localization processing
Rob Mensching committed
Jul 19, 2018 at 00:48 UTC
1a41c836f21f217c82979b06c721a0cd7f6e2734
2 files changed
+2
-2
src/WixToolset.Core/CommandLine/BuildCommand.cs
+1
-1
@@ -87,7 +87,7 @@ namespace WixToolset.Core.CommandLine
87
return 1;
88
}
89
90
- var wxls = this.LoadLocalizationFiles();
90
+ var wxls = this.LoadLocalizationFiles().ToList();
91
92
if (this.Messaging.EncounteredError)
93
{
src/WixToolset.Core/Resolver.cs
+1
-1
@@ -241,7 +241,7 @@ namespace WixToolset.Core
241
{
242
var library = data.GetLibrary(creator);
243
244
- if (library?.Localizations != null)
244
+ if (library?.Localizations != null && library.Localizations.Any())
245
{
246
var extensionFilter = (!filter.Any() && data.DefaultCulture != null) ? new[] { data.DefaultCulture } : filter;
247