【问题标题】:Creating Wix CustomAction in VS2015 and not able to identify the Tag WixCATargetsPath在 VS2015 中创建 Wix CustomAction 并且无法识别标签 WixCATargetsPath
【发布时间】:2016-12-15 16:47:01
【问题描述】:

我正在从 VS2015 创建 Wix CustomAction,正如这里给出的那样。 http://www.codeproject.com/Articles/132918/Creating-Custom-Action-for-WIX-Written-in-Managed?fid=1599130&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Quick&spc=Relaxed&select=4131367&fr=1#xx0xx

我已安装 WIX 安装程序并能够访问 Microsoft.Deployment.WindowsInstaller.dll 库。

但是当我尝试将 WixCATargetsPath 添加到项目文件的 PropertyGroup 部分时,它说它具有无效的子元素。我正在按照上面链接中给出的说明进行操作。

<WixCATargetsPath Condition=" '$(WixCATargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.0\Wix.CA.targets</WixCATargetsPath>

大家有什么想法。

谢谢

【问题讨论】:

  • 请发布您的项目文件,看看属性是否放置正确
  • 您面临@Ritha 的什么错误消息?我在下面发布了一个答案,可以帮助我解决这个问题。也许它也可以帮助其他人。

标签: .net wix wix3.5


【解决方案1】:

我遇到了同样的问题并通过检查两件事解决了它。

  1. 如果您使用的是 ToolsVersion "14.0",请使用以下代码行:

    $(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.CA.targets

  2. 确保上面的代码行是单行并且不应超过一行。

保存项目文件并重新加载项目。 希望这会有所帮助。

【讨论】:

    猜你喜欢
    • 2018-07-27
    • 2022-01-05
    • 2017-06-09
    • 1970-01-01
    • 1970-01-01
    • 2018-03-25
    • 2013-05-08
    • 2017-11-04
    • 1970-01-01
    相关资源
    最近更新 更多