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.
I am unable to build the iOS samples AudioGenerator and AudioConverterFileConverter using Visual Studio 2013 Update 3. For some reason the reference to monotouch cannot be resolved, and the project fails to build with the following error:
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1697,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "monotouch". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
Here is the complete build log: https://gist.github.com/ChrisBlackman/2352a42e8411c67fabf5
The .csproj files of the projects seem to be set up correctly, referencing monotouch using '<Reference Include="monotouch" />' which I believe is the right way to do it. Other projects referencing monotouch in this way are working.
I am using Xamarin VS 3.0.143 in Visual Studio 2013 Update 3 on Windows 8.1, with Xamarin.iOS 188.8.131.52.
The samples AudioGenerator and AudioConverterFileConverter are in the monotouch-samples repository, but I've included them in this Dropbox folder for convenience: https://www.dropbox.com/sh/1v779bcnwi9fxdc/AAB7kpSJicRfqMkl_IEBpcQja?dl=0
A fix I found for this was to remove this line from the .csproj file
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
but keep this one in there.
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.MonoTouch.CSharp.targets" />
This only happens to me with projects created on OSX which I then later checkout a git/svn repo and build on Windows. No idea what *.CSharp.targets actually are either.
Today, I have checked this issue with:
Now this issue is not exists, we are successfully able to run build the iOS samples AudioGenerator and AudioConverterFileConverter through VS.
Hence closing this issue.