From 697f2cdbdcd8198d06ebf14fc2b65f0ce3fa5a94 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Mon, 1 Mar 2021 10:12:40 -0800 Subject: TARGETDIR is the default directory root, so allow it --- src/WixToolset.Core/Compiler.cs | 5 ----- .../TestData/SimpleModule/Module.wxs | 12 +++++------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/WixToolset.Core/Compiler.cs b/src/WixToolset.Core/Compiler.cs index ac99a8a1..384f8795 100644 --- a/src/WixToolset.Core/Compiler.cs +++ b/src/WixToolset.Core/Compiler.cs @@ -4226,11 +4226,6 @@ namespace WixToolset.Core { this.Core.Write(ErrorMessages.IllegalAttributeWithoutOtherAttributes(sourceLineNumbers, node.Name.LocalName, "ShortName", "Name")); } - - if (null == parentId) - { - this.Core.Write(ErrorMessages.DirectoryRootWithoutName(sourceLineNumbers, node.Name.LocalName, "Name")); - } } else if (!String.IsNullOrEmpty(name)) { diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/SimpleModule/Module.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/SimpleModule/Module.wxs index 737ac8df..9a523162 100644 --- a/src/test/WixToolsetTest.CoreIntegration/TestData/SimpleModule/Module.wxs +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/SimpleModule/Module.wxs @@ -1,15 +1,13 @@ - + - - + - - - + + + - -- cgit v1.2.3-55-g6feb