Bug 53694 - Unable to build Xamarin Forms App with latest dotnet sdk
Summary: Unable to build Xamarin Forms App with latest dotnet sdk
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-03-22 05:52 UTC by Karthik
Modified: 2017-03-28 00:58 UTC (History)
2 users (show)

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

Sample Test Case (1.21 KB, application/zip)
2017-03-22 05:52 UTC, Karthik

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 Karthik 2017-03-22 05:52:56 UTC
Created attachment 20548 [details]
Sample Test Case

Unable to build Xamarin Forms project with dotnet sdk on linux.
Steps to reproduce-
1) Download latest dotnet sdk from https://github.com/dotnet/cli 
2) Run dotnet restore and dotnet build on the attached project. (Build Fails when Xamarin.Forms is added as a package reference.)
3) The following error is reported-

/home/karthik/.nuget/packages/xamarin.forms/,3): error MSB4062: The "Xamarin.Forms.Build.Tasks.FixedCreateCSharpManifestResourceName" task could not be loaded from the assembly /home/karthik/.nuget/packages/xamarin.forms/ Could not load file or assembly 'Microsoft.Build.Tasks.v4.0, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. [/home/karthik/Desktop/dotnet-proj/sample/sample.csproj]
/home/karthik/.nuget/packages/xamarin.forms/,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/karthik/Desktop/dotnet-proj/sample/sample.csproj]

Please let us know in case there is any plan to fix this issue or any workaround possible to build the application with dependency on Xamarin.Forms on latest dotnet sdk.
Comment 1 Paul DiPietro [MSFT] 2017-03-28 00:58:36 UTC
This is not officially supported at this time. I would point you to the community for assistance in this, be it the Xamarin forums, StackOverflow, or similar.