ILRepack.MSBuild.Task icon indicating copy to clipboard operation
ILRepack.MSBuild.Task copied to clipboard

V2 - The process cannot access the file error when building

Open dotfede opened this issue 6 years ago • 0 comments

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.

dotfede avatar Feb 17 '19 15:02 dotfede