Bug 60705 - Cannot compile using dotnet
Summary: Cannot compile using dotnet
Alias: None
Product: Forms
Classification: Xamarin
Component: Mac ()
Version: 2.4.0
Hardware: PC Mac OS
: --- major
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-11-15 20:06 UTC by Frank A. Krueger
Modified: 2018-02-02 21:38 UTC (History)
3 users (show)

Tags: fr
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:

Description Frank A. Krueger 2017-11-15 20:06:05 UTC
When I try to compile a .NET Standard library that references Xamarin.Forms, it fails with this error:

argets(51,3): error MSB4062: The "Xamarin.Forms.Build.Tasks.FixedCreateCSharpManifestResour
ceName" task could not be loaded from the assembly /home/ubuntu/.nuget/packages/xamarin.for
ms/ Could not load file or a
ssembly 'Microsoft.Build.Utilities.v4.0, Version=, Culture=neutral, PublicKeyToken=b
03f5f7f11d50a3a'. The system cannot find the file specified. [/home/ubuntu/Ooui/Ooui.Forms/
argets(51,3): error MSB4062:  Confirm that the <UsingTask> declaration is correct, that the
 assembly and all its dependencies are available, and that the task contains a public class
 that implements Microsoft.Build.Framework.ITask. [/home/ubuntu/Ooui/Ooui.Forms/Ooui.Forms.

This seems to be related to: https://github.com/Microsoft/msbuild/issues/2111

I believe it is fixed if you build with VS2017 instead of 2015.
Comment 1 Frank A. Krueger 2017-11-16 21:29:10 UTC
This is causing build breaks on Ooui.Forms

Comment 2 Wonyoung Choi 2017-11-17 02:48:20 UTC
Related PR: https://github.com/xamarin/Xamarin.Forms/pull/1284