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.
This was building with the 4.0.12 beta. We upgraded to the Alpha to work around a bug and it doesn't build.
I am running on Mac OS 10.8.4.
MonoGame.Tests.MacOS.csproj: Error: /Users/brandon/src/MonoGame-fork/Test/MonoGame.Tests.MacOS.csproj: /Users/brandon/src/MonoGame-fork/Test/MonoGame.Tests.MacOS.csproj could not import "$(MSBuildExtensionsPath)\Mono\MonoMac\v0.0\Mono.MonoMac.targets" (MonoGame.Tests.MacOS)
The path mentioned in the error appears in the following line of the csproj file:
<Import Project="$(MSBuildExtensionsPath)\Mono\MonoMac\v0.0\Mono.MonoMac.targets" />
how are you trying to build?
Open MonoGame/Test/MonoGame.Tests.MacOS.sln and press cmd-b. Debug configuration is active and MonoGame.Tests.MacOS is currently the active project.
I am building from the MonoGame develop branch commit 626714b.
It builds fine after downgrading the 4.0.12 on the beta channel.
Did you enable experimental xbuild/msbuild support or anything?
It shouldn't even care about the dummy Mono.MonoMac.targets file if it's using the standard build system.
That .targets file doesn't exist and never should have gone into the .csproj files anyway. It's a bug that it's even there.
I'm not sure how to check which build system it is using. I do see in the Project Options that "Use MSBuild build engine (recommended for this project type)" is checked.
Thanks for letting me know that Import shouldn't be in the csproj file. I will submit a patch to remove it from MonoGame.
Uncheck that checkbox and I bet it will start working again.
Making that change does cause it to start building without error.
I diffed the csproj file after unchecking that box and the following line was added which did not exist before:
Does that mean MSBuild will now be the default build engine for project types that support it?
I think that was a change that was made recently. But now that I know what caused this, I'll reassign appropriately. That change is likely to cause breakage among every monomac project :-(
Thanks for reporting this!
Sorry for the long delay in responding to this bug.
I believe this issue has been fixed in newer builds.
Please reopen if this issue still exists and apologies again on the delay.