2012-02-27 22 views
6

Tôi đang sử dụng nhiệm vụ Wix HeatFile trong một bước bài buildWix HeatFile công tác Locks 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" /> 

Khi tôi làm một xây dựng, nó khóa dll của tôi và sau đó xây dựng thất bại với:

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 

cho đến khi tôi khởi động lại Visual Studio.

Làm cách nào để ngăn tác vụ Wix gây ra sự cố này?

Trả lời

Các vấn đề liên quan