-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support naked files. #479
Support naked files. #479
Conversation
0932858
to
534ec7b
Compare
Added: Components and naked Files default to being installed to INSTALLFOLDER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks good. One small suggestion.
src/wix/WixToolset.Core/Compiler.cs
Outdated
string condition = null; | ||
string subdirectory = null; | ||
|
||
var keyPath = this.ParseFileElementAttributes(node, "TemporaryComponentId", directoryId, diskId: CompilerConstants.IntegerNotSet, sourcePath, out var _, componentGuid: "*", isNakedFile: true, out var fileSymbol, out var assemblySymbol); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about setting this to an invalid Id like "@WixTempComponentId"
? That way, if it ever sneaks through too far into the build process, an error will occur.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooh, I like that!
Implements wixtoolset/issues#7696. `File` elements can appear where `Component` elements do in WiX v4. The compiler generates an appropriate per-file component. Naked files under `Directory`, `DirectoryRef`, `Fragment`, `StandardDirectory`, or `Package` elements are included in a package via the [default-feature feature](wixtoolset/issues#7581). Naked files appearing under `ComponentGroup`, `Feature`, `FeatureRef`, and `FeatureGroup` generate the component and the reference to the parent element. Components and naked Files default to being installed to INSTALLFOLDER (including a default INSTALLFOLDER if one isn't otherwise authored).
534ec7b
to
50c0f7d
Compare
Implements wixtoolset/issues#7696.
File
elements can appear whereComponent
elements do in WiX v4. The compiler generates an appropriate per-file component. Naked files underDirectory
,DirectoryRef
,Fragment
,StandardDirectory
, orPackage
elements are included in a package via the default-feature feature. Naked files appearing underComponentGroup
,Feature
,FeatureRef
, andFeatureGroup
generate the component and the reference to the parent element.Components and naked Files default to being installed to INSTALLFOLDER
(including a default INSTALLFOLDER if one isn't otherwise authored).