2012-02-27 15 views
6

estoy usando la tarea Wix HeatFile en un paso posterior a la acumulaciónWix HeatFile tarea consume 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" /> 

Una vez que hago una acumulación, se bloquea mi DLL y posterior construye fallar con:

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 

hasta que reinicie Visual Studio.

¿Cómo puedo evitar que la tarea Wix cause este problema?

Respuesta