Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
# Steps to reproduce
This issue is happening randomly and I currently do not have a stable reproduction pattern.
Must of the it happens when starting multiple debug sessions from Visual Studio by switching platform iPhone or iPhoneSimulator between runs
# Expected behavior
All debug sessions should start without issues or requiring more cleaning
# Actual behavior
Sometimes the build step fails with the error message
Could not write lines to file "obj\Debug\MyPclLibrary.vbproj.FileListAbsolute.txt". The process cannot access the file 'C:\Path\To\My\Solution\MyPclLibrary\obj\Debug\MyPclLibrary.vbproj.FileListAbsolute.txt' because it is being used by another process.
My current workaround is to restart every Visual Studio instances.
# Supplemental info (logs, images, videos)
# Test environment (full version information)
Microsoft Visual Studio Enterprise 2015
Version 14.0.23107.0 D14REL
Xamarin 188.8.131.526 (4a80730)
Xamarin.iOS 9.2.151 (Business Edition)
Thanks a lot for reporting this. We're investigating, but we have a pretty good idea where this is coming from, and will have a fix in place very soon.
In the meantime, could you please try the following workaround?
1 - From an administrator command prompt, open C:\Program Files (x86)\MSBuild\[4.0|12.0|14.0]\Microsoft.Common.Targets\ImportAfter\Xamarin.Common.targets
2 - Edit line #, and add the following attribute to the WriteLinesToFile element: ContinueOnError="WarnAndContinue"
Let us know if it works, since that will most likely be the fix too.
Thanks in advance!
This issue seems pretty much a duplicate of 35850.
Please feel free to reopen if the provided workaround doesn't help. For now, marking it as a duplicate to keep things tidy.
You can follow up on the other bug.
Thanks for reporting!
*** This bug has been marked as a duplicate of bug 35850 ***
You are not authorized to access bug #35850.
I am replacing the non-public bug from Comment 2 with a cleaned-up public duplicate of the same issue for further public tracking.
*** This bug has been marked as a duplicate of bug 36190 ***