Bug 60705 - Cannot compile using dotnet
Summary: Cannot compile using dotnet
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Mac ()
Version: 2.4.0
Hardware: PC Mac OS
: --- major
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
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:
Status:
RESOLVED FIXED

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:


/home/ubuntu/.nuget/packages/xamarin.forms/2.4.0.38779/build/netstandard1.0/Xamarin.Forms.t
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/2.4.0.38779/build/netstandard1.0/Xamarin.Forms.Build.Tasks.dll. Could not load file or a
ssembly 'Microsoft.Build.Utilities.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b
03f5f7f11d50a3a'. The system cannot find the file specified. [/home/ubuntu/Ooui/Ooui.Forms/
Ooui.Forms.csproj]
/home/ubuntu/.nuget/packages/xamarin.forms/2.4.0.38779/build/netstandard1.0/Xamarin.Forms.t
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.
csproj]

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

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