6
我使用的維克斯HeatFile任務後生成步驟維克斯HeatFile任務鎖住的Dll
<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任務導致此問題?
太棒了。謝謝!!! – Jeff 2012-04-05 12:49:09