路径中的 WIX 非法字符

Pet*_*ter 1 wix

我有错误

路径中的非法字符

当我尝试构建我的 WIX.Setup 时。我可以在以下组件中找到问题

  <Component Id="C.Cef.Common.BrowserSubprocess.Core" Guid="{5603fa71-5739-4513-9cba-793a6f6d29ce}">
    <File Id="CefSharp.BrowserSubprocess.Core.dll"    Source="$(var.Path.Cefsharp.Commonx64)\CefSharp.BrowserSubprocess.Core.dll" KeyPath="yes" Checksum="yes"/>
  </Component>
  <Component Id="C.Cef.Common.BrowserSubprocessexe" Guid="{5b0b77cd-7787-4c8a-b388-8042d179a788}">
    <File Id="CefSharp.BrowserSubprocess.exe"       Source="$(var.Path.Cefsharp.Commonx64)\CefSharp.BrowserSubprocess.exe" KeyPath="yes" Checksum="yes"/>
  </Component>
  <Component Id="C.Cef.Common.Core"                 Guid="{98a016a2-50cb-4fdb-ae50-46f7f35ac270}">
    <File Id="CefSharp.Core.dll"                    Source="$(var.Path.Cefsharp.Commonx64)\CefSharp.Core.dll" KeyPath="yes" Checksum="yes"/>
  </Component>
  <Component Id="C.Cef.Common.CefSharp"             Guid="{a181bbed-fc28-41c8-868d-8c1dd62dbc46}">
    <File Id="CefSharp.dll"                         Source="$(var.Path.Cefsharp.Commonx64)\CefSharp.dll" KeyPath="yes" Checksum="yes"/>
  </Component>
Run Code Online (Sandbox Code Playgroud)

如果我删除它们,它就会起作用。

  <?define Path.Cefsharp.Commonx64 =              "$(var.Path.Packages)\CefSharp.Common.55.0.0\CefSharp\x64 ?>
Run Code Online (Sandbox Code Playgroud)

非法字符在哪里?

Tom*_*get 6

引号只是预处理器定义中的值有时需要的语法。

由于您错过了您必须想要的尾随引用,因此前导引用被视为值的一部分!

<?define Path.Cefsharp.Commonx64 = 
  "$(var.Path.Packages)\CefSharp.Common.55.0.0\CefSharp\x64 ?>
Run Code Online (Sandbox Code Playgroud)

我用candle -p开关找到了这一点。