I'm new to using Wix, and tried to make a simple installation for my App. I did the following:
- Downloaded and installed the Extension for Visual Studio 2017 from here.
- Download and installed WiX Toolset v3.11.1
- Created a Setup Project for WiX v3
- Added a reference to my App in the project, and added the block in
Product.wxs
:
<Component Id="ProductComponent">
<File Source="$(var.MyApplication.TargetPath)" />
</Component>
When I compile the Wix setup project, I get the following error:
The "CreateProjectReferenceDefineConstants" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin" directory.
Any ideas what went wrong? I can't find any mention of this error online. Whatis a task and what is a task class? I was expecting that doing this quick guide would be enough for a simple installer.