Я использую задачу Wix HeatFile в пост-сборке step
<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?