Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Visual Studio Professional 2017 and Xamarin Forms - Build Issue

$
0
0

VS Professional 2017 Version 15.7.4 (On Windows 10)
Xamarin.Forms - 3.0

Platform Target Frameworks:
iOS: 11.12.0.4
Android: 8.3.3.2
UWP: N/A

If i try to create a Xamarin.Forms (3.1) project in Visual Studio 2017, it fails with below issues.

Severity Code Description Project File Line Suppression State
Error MSB4062 The "Xamarin.Forms.Build.Tasks.XamlGTask" task could not be loaded from the assembly C:\Users\nmansuri.nuget\packages\xamarin.forms\3.0.0.561731\build\netstandard2.0\Xamarin.Forms.Build.Tasks.dll. Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified. Confirm that the 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. July7App C:\Users\nmansuri.nuget\packages\xamarin.forms\3.0.0.561731\build\netstandard2.0\Xamarin.Forms.targets 75

Severity Code Description Project File Line Suppression State
Error MSB4062 The "Xamarin.Forms.Build.Tasks.GetTasksAbi" task could not be loaded from the assembly C:\Users\nmansuri.nuget\packages\xamarin.forms\3.1.0.583944\build\netstandard2.0\Xamarin.Forms.Build.Tasks.dll. Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified. Confirm that the 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. July7App C:\Users\nmansuri.nuget\packages\xamarin.forms\3.1.0.583944\build\netstandard2.0\Xamarin.Forms.targets 36

Another observation is the warning symbol appearing on the Dependencies folders in the shared library project. I dont understand why it appears.

Steps to Reproduce
Create a new Blank Forms Project - choose only android and ios target projects and code
sharing strategy is set to .NET standard
Without making any changes to the default structure, Build or clean solution
the above mentioned errors are thrown


Viewing all articles
Browse latest Browse all 77050

Trending Articles