ILRepack.MSBuild.Task
ILRepack.MSBuild.Task copied to clipboard
V2 - The process cannot access the file error when building
V2.0.13
Repro project available here.
Steps to reproduce:
- Clone the above repo
- Open the "Step2.sln" solution in VS
- Rebuild All
the following build error occurs:
The process cannot access the file 'C:\Dev\ILRepackRepro\Using.ILRepack.V2\bin\Debug\net462\Using.ILRepack.V2.dll' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.InternalDelete(String path, Boolean checkHost) at System.IO.File.Delete(String path) at ILRepacking.ILRepack.MoveTempFile(String tempFile, String outFile) at ILRepacking.ILRepack.Repack() at ILRepack.MSBuild.Task.ILRepack.Execute()
Notice this error does not occur using latest V1.