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.
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/18.104.22.168-pre3/build/portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20/Xamarin.Forms.targets(40,3): error MSB4062: The "Xamarin.Forms.Build.Tasks.FixedCreateCSharpManifestResourceName" task could not be loaded from the assembly /home/karthik/.nuget/packages/xamarin.forms/22.214.171.124-pre3/build/portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20/Xamarin.Forms.Build.Tasks.dll. Could not load file or assembly 'Microsoft.Build.Tasks.v4.0, Version=126.96.36.199, 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/188.8.131.52-pre3/build/portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20/Xamarin.Forms.targets(40,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.
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.