【问题标题】:Wix HeatFile Task Locks DllWix HeatFile 任务锁 Dll
【发布时间】:2012-02-27 20:32:20
【问题描述】:

我在后期构建步骤中使用 Wix HeatFile 任务

<HeatFile OutputFile="Interop.dll.wxs" File="..\Interop\bin\x86\$(Configuration)\Interop.dll" DirectoryRefId="INSTALLDIR" ComponentGroupName="Interop_Dll" AutogenerateGuids="true" SuppressFragments="true" SuppressRootDirectory="true" ToolPath="$(WixToolPath)" PreprocessorVariable="var.InteropBinDir" />

一旦我进行构建,它会锁定我的 dll,随后的构建失败:

Error   6   Unable to copy file "obj\x86\Debug\Interop.dll" to "bin\x86\Debug\dll". The process cannot access the file 'bin\x86\Debug\Interop.dll' because it is being used by another process. Interop

直到我重新启动 Visual Studio。

如何阻止 Wix 任务导致此问题?

【问题讨论】:

    标签: visual-studio-2010 wix wix3.5


    【解决方案1】:

    似乎 heat 任务的这个属性解决了你的问题:

    RunAsSeparateProcess="true"
    

    我在 HeatDirectory 任务中遇到了同样的问题,它对我有用。解决方案取自http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Locked-DLL-files-when-using-WiX-HeatDirectory-MSBuild-tasks-td6015042.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-07
      • 1970-01-01
      • 2019-05-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多