[wix-users] How to use WiX in a referenced NuGet-Package

Kuch3n kuch3n at protonmail.com
Mon Nov 30 07:25:26 PST 2020


Solved:
The default value of PrivateAssets of a PackageReference element is "contentfiles;analyzers;build". Therefore the props file won't be loaded. Setting it to "<PrivateAssets>contentfiles;analyzers</PrivateAssets>" will load the props file.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, 30. November 2020 15:43, Kuch3n via wix-users <wix-users at lists.wixtoolset.org> wrote:

> I'm referencing a NuGet-Package in a Project, which contains a WiX-Projekt. This Project references the NuGet WiX package. Building the Project with the restore flag (-restore), does restore the WiX nuget package, but the build will fail:
> "WiXTest.wixproj(64,5): error : The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/".
>
> -   It seems the wix.props isn't included and the WiX toolset doen't load.
> -   Deleting the WiX nuget package localy (in .nuget) will restore the WiX nuget package. But it doesn't seem to load the wix.props from that nuget package.
>
>     Project A
>     -> NuGet Reference to Project B (NuGet)
>
>
> Project B
>
> -   Contains the WiX Project
> -   .targets file to build the WiX-Project
>     -- Task: <MSBuild Projects="$(WiXProject)"
>     -> Reference to WiX nuget package
>
>
> Any hints on that?
>
> Sent with ProtonMail Secure Email.
>
> WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/





More information about the wix-users mailing list