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.
When trying to compile a native bindings project in MSVS, I get the following error:
1> C:\Program Files (x86)\MSBuild\Xamarin\iOS\btouch.exe /compiler:\ /baselib:"C:\Program Files (x86)\MSBuild\Xamarin\iOS\monotouch.dll" /unsafe /d:DEBUG ApiDefinition.cs /s:StructsAndEnums.cs -r C:\Work\MyProject\backend\packages\Microsoft.Bcl.Async.1.0.168\lib\portable-net45+win8+wpa81\Microsoft.Threading.Tasks.dll -r C:\Work\MyProject\backend\packages\Microsoft.Bcl.Async.1.0.168\lib\portable-net45+win8+wpa81\Microsoft.Threading.Tasks.Extensions.dll -r "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoTouch\v1.0\monotouch.dll" -r "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoTouch\v1.0\mscorlib.dll" -r "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoTouch\v1.0\System.dll" -r C:\Work\MyProject\backend\packages\Microsoft.Bcl.Async.1.0.168\lib\portable-net45+win8+wpa81\Microsoft.Threading.Tasks.dll -r C:\Work\MyProject\backend\packages\Microsoft.Bcl.Async.1.0.168\lib\portable-net45+win8+wpa81\Microsoft.Threading.Tasks.Extensions.dll /tmpdir:obj\Debug\ios\ /sourceonly:obj\Debug\ios\\sources.list (TaskId:29)
error BI0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
System.ComponentModel.Win32Exception (0x80004005): Access is denied
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at BindingTouch.Main2(String args)
at BindingTouch.Main(String args)
The project was created using Xamarin Studio on Mac and seems to compile fine there.
Is there a way I can make this work when compiling with Visual Studio?
Deconstructing the command-line it seems the problem is the empty compiler switch:
What is supposed to go there?
Support for iOS bindings projects in Visual Studio is a new feature starting in XamarinVS 3.11 (currently on the Alpha channel).
This bug was originally filed against XamarinVS 4.0 (C6), but that version has not been released yet, so I suspect the actual version might have been one of the XamarinVS 3.9 versions.
- Add your complete version information from "Help -> About Microsoft Visual Studio -> Copy Info" on this bug. (See also .)
>  https://kb.xamarin.com/customer/portal/articles/1910343-when-and-how-should-i-file-a-bug-report-
(If this link redirects to the top-level `https://kb.xamarin.com` page the first time you click it, try clicking it once more.)
- If you're already using XamarinVS 3.11, please attach the Diagnostic Build Output  for the project onto this bug report.
>  https://kb.xamarin.com/customer/portal/articles/1675684#verbose-build-output-logs
Thanks in advance!
I can confirm the bug, but only for binding projects targeting Classic Api.
In our scenario, we have a binding project targeting classic that works on a mac but not from visual studio.
I was able to build the binding project when targeting Unified.
Hope that helps.
I'll mark the bug as resolved fixed based on Comments 2 and 3.
Please feel free to reopen it if you can still reproduce the issue with current bits.