2012-02-27 4 views
6

私はビルドを行うと、それは私のdllファイルをロックし、それ以降はで失敗ビルドをポストビルドステップでウィックス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" /> 

をウィックスHeatFileタスクを使用しています:

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タスクでこの問題が発生しないようにするにはどうすればよいですか?

答えて

8

熱タスクのこのプロパティは、あなたの問題を解決しているようです:

RunAsSeparateProcess="true" 

私はHeatDirectoryタスクと同じ問題を抱えていた、そしてそれは私のために働きました。解決はhttp://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Locked-DLL-files-when-using-WiX-HeatDirectory-MSBuild-tasks-td6015042.html

+0

素晴らしいから取られました。ありがとうございました!!! – Jeff

関連する問題