Bug 17806 - LinkAssemblies fails sometimes (1/2) with a locked file from a binding
Summary: LinkAssemblies fails sometimes (1/2) with a locked file from a binding
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 1.12.x
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: dean.ellis
URL:
Depends on:
Blocks:
 
Reported: 2014-02-17 03:24 UTC by softlion
Modified: 2015-11-03 14:28 UTC (History)
6 users (show)

Tags:
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 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:
Status:
RESOLVED FIXED

Description softlion 2014-02-17 03:24:19 UTC
Step to reproduce

Build Android project referencing and using a binding of testflight sdk
Deploy
Build a second time

Message

1>"C:\DiskJ\projets\ac\Master\ac\Ac.Droid\Ac.Droid.csproj" (SignAndroidPackage cible) (1) ->
1>(_LinkAssemblies cible) -> 
1>  C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(970,5): error MSB4018: échec inattendu de la tâche "LinkAssemblies". [C:\DiskJ\projets\Ac\Master\ac\Ac.Droid\Ac.Droid.csproj]
1>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(970,5): error MSB4018: System.UnauthorizedAccessException: L'accŠs au chemin d'accès 'C:\DiskJ\projets\ac\Master\ac\Ac.Droid\obj\Debug\android\assets\TestFlightBindings.dll.mdb' est refusé. [C:\DiskJ\projets\ac\Master\ac\Ac.Droid\Ac.Droid.csproj]

Workaround

Manually delete the file TestFlightBindings.dll.mdb and rebuild.
Comment 1 Joaquin Jares 2015-11-03 14:28:01 UTC
There where several fixes on the handling of mdbs for Android now present in alpha and locking was specifically targeted. I'm marking this issue as fixed for verification. Please reopen if this is still an issue.