VS2017 15.9 & XF 3.4 - can't build the project

Hi,

I am trying to build a XF project but getting the following weird error:

3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2129,5): error MSB4018: The "LinkAssemblies" task failed unexpectedly.
3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2129,5): error MSB4018: Mono.Linker.MarkException: Error processing method: 'System.Void WiFiManager.MainPage::InitializeComponent()' in assembly: 'WiFiManager.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.Void Xamarin.Forms.Xaml.Internals.SimpleValueTargetProvider::.ctor(System.Object[],System.Object,Xamarin.Forms.Internals.INameScope)

The full list is available here:
https://pastebin.com/k4hTDVTQ

What am I doing wrong?

Tagged:

Answers

  • LandLuLandLu Member, Xamarin Team Xamurai

    Can you build a blank app successfully?
    Have you set the Linker Behavior? Try to set it to Don't Link and build again.

  • AlbertKAlbertK MYMember ✭✭✭✭

    Try to remove the bin and obj directories

  • senglorysenglory Member ✭✭

    Tried to drop bin and obj - no luck

Sign In or Register to comment.