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

  • Question

  • User371227 posted

    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?

    Friday, December 7, 2018 12:26 AM

All replies

  • User369979 posted

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

    Tuesday, December 11, 2018 2:36 AM
  • User228975 posted

    Try to remove the bin and obj directories

    Tuesday, December 11, 2018 6:02 AM
  • User371227 posted

    Tried to drop bin and obj - no luck

    Saturday, December 22, 2018 8:51 PM