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 or GitHub 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.
If you do not build with --enable-xamarin the resulting installation still places the various symlinks for Xamarin.iOS.Analysis.targets which trips the probing code in Xamarin.iOS.Common.targets causing solutions not to build.
@Vincent I thought that was fixed a while ago (might be a bit different), can you double check and fix it required ? thanks!
I cannot reproduce what you're experiencing Miguel. Tried with a fresh xamarin-macios repo (no maccore at all), no --enable-xamarin and it builds just fine.
Also after doing a "make install-system", I can build an iOS project in VSMac just fine.
The error (in xamarin-macios) we used to get looked like this:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(95,2): error MSB4024: The imported project file "/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.Analysis.targets" could not be loaded. Could not find file "/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.Analysis.targets
@miguel do you have that same build error? What's the build output when you're building a XI project in VSMac?
IIRC the old simlink issue was fixed by Rolf and was part of the changes for the Classic removal: https://github.com/xamarin/xamarin-macios/pull/976
cc Rolf for more precisions on that (:
We could be looking at something different indeed but I'd need to be able to reproduce.
I think this might happen when there are existing symlinks to Xamarin.iOS.Analysis.targets files somewhere, and then when running "make install-system" on a build that didn't --enable-xamarin, we don't remove those symlinks.
I'd need to know which files are installed (and their timestamps):
ls -la /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/
ls -la /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/
@Miguel are you still able to repro this ?
Moving out of 15.4 since it does not affect what we ship and can be fixed in master (and the current release branch is still open to commits).
Miguel if the issue appears again please reopen :)