Bug 5455 - File in use error when building
Summary: File in use error when building
Status: RESOLVED DUPLICATE of bug 5295
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 4.2.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-06-01 10:31 UTC by Jonathan Pobst
Modified: 2012-06-01 12:26 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Jonathan Pobst 2012-06-01 10:31:23 UTC
User reported:

I also frequently get the following warning. The only way to resolve it is to quit and restart MonoDevelop. I am using Win7 as the administrator. Latest versions of MonoDevelop, Mono For Android, etc.

C:\Program Files\MSBuild\Novell\Novell.MonoDroid.Common.targets(2,2): Warning: The process cannot access the file 'C:\Users\xxxxx\Documents\xxxxxx\bin\Debug\xxxxx.dll.mdb' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at Mono.CompilerServices.SymbolWriter.MonoSymbolWriter.WriteSymbolFile(Guid guid)
at Pdb2Mdb.Converter.Convert(AssemblyDefinition assembly, IEnumerable`1 functions, MonoSymbolWriter mdb)
at Pdb2Mdb.Converter.Convert(String filename)
at Xamarin.Android.Tasks.ConvertDebuggingFiles.Execute() (xxxxxx)
Comment 1 Mikayla Hutchinson [MSFT] 2012-06-01 12:26:28 UTC

*** This bug has been marked as a duplicate of bug 5295 ***