无法在Windows 10上构建WIX项目 [英] Cannot build WIX project on windows 10

查看:104
本文介绍了无法在Windows 10上构建WIX项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的WIX安装程序项目已在Windows 8.1和Visual Studio 2015上成功构建..NET版本为4.5.1.但是当我升级到Windows 10时,无法构建我的项目.

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.

我不知道问题是否出在Windows 10或其他方面.构建项目时,出现以下错误:

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:

错误"WixAssignCulture"找不到任务.检查以下各项:1.)项目文件中任务的名称与任务类的名称相同.2.)任务类别是公共"类别.并实现Microsoft.Build.Framework.ITask接口.3.)在项目文件或位于"C:\ Program Files(x86)\ MSBuild \ 14.0 \ bin"中的* .tasks文件中正确声明了任务.目录.ProSafeInstaller C:\ Program Files(x86)\ MSBuild \ Microsoft \ WiX \ v3.x \ wix2010.targets 2340

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

错误"ReadRegistry"无法从程序集C:\ Program Files(x86)\ MSBuild .. \ WiX Toolset v3.8 \ bin \ WixTasks.dll加载任务.无法加载文件或程序集"Microsoft.Build.Utilities,版本= 2.0.0.0,区域性=中性,PublicKeyToken = b03f5f7f11d50a3a"或其依赖项之一.Неудаетсянайтиуказанныйфайл.确认声明正确,程序集及其所有依赖项均可用,并且任务包含实现Microsoft.Build.Framework.ITask的公共类.CustomActions.

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.

推荐答案

WiX对NETFX v3.5具有 build 依赖性.如果在程序和功能"中启用了".NET Framework 3.5"功能,则应该能够构建WiX项目.

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. 在控制面板中,打开程序和功能"
  2. 点击打开或关闭Windows功能"
  3. 选择.NET Framework 3.5,然后单击确定"
  4. 等待该功能部件安装,然后重新构建项目

此处是WiX上的相关错误报告.

Here is a relevant bug report on WiX.

这篇关于无法在Windows 10上构建WIX项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆