From 63d1d722bb7ddcbc9ef6730791ae967bf3880f71 Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Mon, 10 Mar 2025 12:05:05 -0400 Subject: Set keypath when parsing naked File child elements Fixes https://github.com/wixtoolset/issues/issues/8976 --- src/wix/WixToolset.Core/Compiler.cs | 4 ++-- .../TestData/NakedFile/DirectoryRef.wxs | 7 +------ .../WixToolsetTest.CoreIntegration/TestData/NakedFile/Package.wxs | 4 +++- 3 files changed, 6 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/wix/WixToolset.Core/Compiler.cs b/src/wix/WixToolset.Core/Compiler.cs index b4980b07..2efca5eb 100644 --- a/src/wix/WixToolset.Core/Compiler.cs +++ b/src/wix/WixToolset.Core/Compiler.cs @@ -5694,7 +5694,7 @@ namespace WixToolset.Core // so and create a file and component symbol with the right data. id = id ?? this.Core.CreateIdentifier("nkf", directoryId, name, condition, win64.ToString()); - var keyPath = this.ParseFileElementOtherAttributes(node, id.Id, directoryId, diskId: CompilerConstants.IntegerNotSet, id, name, shortName, source, out var _, componentGuid: "*", isNakedFile: true, fileSymbol: out var fileSymbol, assemblySymbol: out var assemblySymbol); + this.ParseFileElementOtherAttributes(node, id.Id, directoryId, diskId: CompilerConstants.IntegerNotSet, id, name, shortName, source, out var _, componentGuid: "*", isNakedFile: true, fileSymbol: out var fileSymbol, assemblySymbol: out var assemblySymbol); this.Core.AddSymbol(fileSymbol); @@ -5721,7 +5721,7 @@ namespace WixToolset.Core this.Core.AddSymbol(assemblySymbol); } - this.ParseFileElementChildren(node, fileSymbol, keyPath, win64); + this.ParseFileElementChildren(node, fileSymbol, keyPath: YesNoType.Yes, win64); // if this is a module, automatically add this component to the references to ensure it gets in the ModuleComponents table if (this.compilingModule) diff --git a/src/wix/test/WixToolsetTest.CoreIntegration/TestData/NakedFile/DirectoryRef.wxs b/src/wix/test/WixToolsetTest.CoreIntegration/TestData/NakedFile/DirectoryRef.wxs index 6de50ac4..06f5feb2 100644 --- a/src/wix/test/WixToolsetTest.CoreIntegration/TestData/NakedFile/DirectoryRef.wxs +++ b/src/wix/test/WixToolsetTest.CoreIntegration/TestData/NakedFile/DirectoryRef.wxs @@ -2,16 +2,11 @@ + - - - - - - diff --git a/src/wix/test/WixToolsetTest.CoreIntegration/TestData/NakedFile/Package.wxs b/src/wix/test/WixToolsetTest.CoreIntegration/TestData/NakedFile/Package.wxs index 9ddd4787..913dfc39 100644 --- a/src/wix/test/WixToolsetTest.CoreIntegration/TestData/NakedFile/Package.wxs +++ b/src/wix/test/WixToolsetTest.CoreIntegration/TestData/NakedFile/Package.wxs @@ -1,6 +1,8 @@ - + + + -- cgit v1.2.3-55-g6feb