Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot build WIX project on windows 10

Tags:

c#

wix

My WIX installer project was successfully building on windows 8.1 with Visual Studio 2015. .NET version is 4.5.1. But when I upgraded to windows 10 I could not build my project.

I don't know wether the problem is because of windows 10 or something else. When I build my project I receive the following errors:

Error The "WixAssignCulture" 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)\MSBuild\14.0\bin" directory. ProSafeInstaller C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\wix2010.targets 2340

Error The "ReadRegistry" task could not be loaded from the assembly C:\Program Files (x86)\MSBuild..\WiX Toolset v3.8\bin\WixTasks.dll. Could not load file or assembly 'Microsoft.Build.Utilities, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Не удается найти указанный файл. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. CustomActions.

like image 735
Anton23 Avatar asked Feb 01 '16 13:02

Anton23


People also ask

How do I install WiX on Windows?

Steps to Install WiX on Windows 11.1 and click on the download button. Step 2: You will be redirected to the source code present in the version control system GIT, and we need to choose the appropriate .exe file and click on download. Here we have chosen wix311.exe and click on it, and then it will be downloaded.

How do I open a WiX project in Visual Studio 2019?

In Visual Studio, open your solution, and add a WiX project to it: go to the Visual Studio main menu and click File -> Add -> New Project to open the Add New Project dialog. Choose the Setup Project item in the Windows Installer XML node, specify the project name and click OK.

Is WiX Installer free?

Download. You can download the WiX toolset for free.


1 Answers

WiX has a build dependency on NETFX v3.5. If you enable the ".NET Framework 3.5" feature in "Programs and Features", you should be able to build your WiX projects.

  1. In the control panel, open Programs and Features
  2. Click Turn Windows features on or off
  3. Select .NET Framework 3.5 and click OK
  4. Wait for the feature to install and then rebuild your project

Here is a relevant bug report on WiX.

like image 108
martin Avatar answered Oct 23 '22 02:10

martin