aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/Compiler_Bundle.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core/Compiler_Bundle.cs')
-rw-r--r--src/WixToolset.Core/Compiler_Bundle.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/WixToolset.Core/Compiler_Bundle.cs b/src/WixToolset.Core/Compiler_Bundle.cs
index 86fec16e..b8386138 100644
--- a/src/WixToolset.Core/Compiler_Bundle.cs
+++ b/src/WixToolset.Core/Compiler_Bundle.cs
@@ -566,9 +566,17 @@ namespace WixToolset.Core
566 break; 566 break;
567 case "Type": 567 case "Type":
568 var typeString = this.Core.GetAttributeValue(sourceLineNumbers, attrib); 568 var typeString = this.Core.GetAttributeValue(sourceLineNumbers, attrib);
569 if (!Enum.TryParse<ContainerType>(typeString, out type)) 569 switch (typeString)
570 { 570 {
571 this.Core.Write(ErrorMessages.IllegalAttributeValueWithLegalList(sourceLineNumbers, node.Name.LocalName, "Type", typeString, "attached, detached")); 571 case "attached":
572 type = ContainerType.Attached;
573 break;
574 case "detached":
575 type = ContainerType.Detached;
576 break;
577 default:
578 this.Core.Write(ErrorMessages.IllegalAttributeValueWithLegalList(sourceLineNumbers, node.Name.LocalName, "Type", typeString, "attached, detached"));
579 break;
572 } 580 }
573 break; 581 break;
574 default: 582 default: