Error at Xamarin.Build.Download (MergeResources)

I am creating a native application with Xamarin.Android and I am using the Xamarin.Android.Support library.

When I upgraded the version of support library from 24.2.1 to 25.3.1, I got an error as follows and I can not build it.
I think that it is caused at Xamarin.Build.Download, but is there any solution ?

For now, I got source code from GitHub - XamarinComponents, and altered [OverwriteSourceAssembly] variable to false in [BaseXamarinBuildResourceRestore.cs].
By doing like this, the build was processed (successfully ?).

Is it the similar cause as following issue ?

Locked Target Assembly with Mono.Cecil and PCL Code Injection #321
https://github.com/jbevain/cecil/issues/321

I am using:
Visual Studio 2015
Xamarin 4.5.0.486
Xamarin.Android 7.3.1.2
Xamarin.Build.Download 0.4.6

1>  Application Java class: android.support.multidex.MultiDexApplication
1>C:\MyProjects\Xamarin\myproj\packages\Xamarin.Build.Download.0.4.6\build\Xamarin.Build.Download.targets(93,3): error : The process cannot access the file 'C:\MyProjects\Xamarin\myproj\packages\Xamarin.Android.Support.Annotations.25.3.1\lib\MonoAndroid70\Xamarin.Android.Support.Annotations.dll' because it is being used by another process. 
1>C:\MyProjects\Xamarin\myproj\packages\Xamarin.Build.Download.0.4.6\build\Xamarin.Build.Download.targets(93,3): error :    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
1>C:\MyProjects\Xamarin\myproj\packages\Xamarin.Build.Download.0.4.6\build\Xamarin.Build.Download.targets(93,3): error :    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, Boolean checkHost)
1>C:\MyProjects\Xamarin\myproj\packages\Xamarin.Build.Download.0.4.6\build\Xamarin.Build.Download.targets(93,3): error :    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
1>C:\MyProjects\Xamarin\myproj\packages\Xamarin.Build.Download.0.4.6\build\Xamarin.Build.Download.targets(93,3): error :    at Mono.Cecil.ModuleDefinition.GetFileStream(String fileName, FileMode mode, FileAccess access, FileShare share)
1>C:\MyProjects\Xamarin\myproj\packages\Xamarin.Build.Download.0.4.6\build\Xamarin.Build.Download.targets(93,3): error :    at Mono.Cecil.ModuleDefinition.Write(String fileName, WriterParameters parameters)
1>C:\MyProjects\Xamarin\myproj\packages\Xamarin.Build.Download.0.4.6\build\Xamarin.Build.Download.targets(93,3): error :    at Xamarin.Build.Download.BaseXamarinBuildResourceRestore.MergeResources(IAssemblyResolver resolver, String originalAsmPath, String mergedAsmPath, String assemblyName, List`1 resourceItems)
Sign In or Register to comment.