Skip to content

Commit

Permalink
ProjectReferences to wixlibs should participate in DefineConstants cr…
Browse files Browse the repository at this point in the history
…eation

Also fix documentation in ResolveWixLibraryReferences target.

Fixes 7512
  • Loading branch information
robmen committed Jun 2, 2023
1 parent ed0a765 commit 783b829
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
@@ -1,3 +1,7 @@
<?ifndef WixprojLibraryVcxprojDll.ProjectDir ?>
<?error This error should not be hit when wixlib ProjectReferences correctly create their DefineConstants. ?>
<?endif?>

<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
<Package Name='!(loc.PackageName)' Manufacturer='WiX Toolset' Version='0.0.1' UpgradeCode='41a2c17e-1976-465b-bcde-eae03516ca68'>
Expand Down
5 changes: 2 additions & 3 deletions src/wix/WixToolset.Sdk/tools/wix.targets
Expand Up @@ -331,7 +331,6 @@

<ItemGroup>
<WixLibrary Include="@(_WixResolvedProjectReference)" Condition=" '%(Extension)' == '.wixlib' " />
<_WixResolvedProjectReference Remove="@(WixLibrary)" />
</ItemGroup>

<!-- Convert resolved project references into compiler defines and named and unamed bind paths -->
Expand Down Expand Up @@ -366,11 +365,11 @@
[IN]
@(WixLibrary) - the list of .wixlib files.
@(_WixResolvedProjectReference) - resolved project references.
$(WixLibrarySearchPaths) - optional search paths used to find .wixlibs.
[OUT]
@(_ResolvedWixLibraryPaths) - Item group with full paths to libraries
@(_ResolvedWixLibraryPaths) - Item group with full paths to libraries that were found.
@(_UnresolvedWixLibraryPaths) - Item group with full paths to libraries that were not found.
================================================================================================
-->
<PropertyGroup>
Expand Down

0 comments on commit 783b829

Please sign in to comment.