Xamarin Forms Intellisense breaks if Form Views are in different project in Visual Studio for Mac

RogerWeissRogerWeiss ZAMember ✭✭

As the title says. Intellisense breaks if you decide to Move your Xamarin Forms views out of the Core Project its own Project. Not a bad idea if you want certain platforms to be Native but share the Core.

Any ideas how to solve this?

It works in Visual Studio 2017 for Windows.

Tagged:

Posts

  • RogerWeissRogerWeiss ZAMember ✭✭

    Found the problem. Now that my ViewModels and Views don't share the same assembly, you have to explicitly set there the ViewModels are found. That must have been what broke Intellisense for Visual Studio for Mac. In other words. changed the line:

    xmlns:viewModels="clr-namespace:MyProject.Core.ViewModels;assembly=MyProject.Core"

    <Mvx:MvxContentPage x:TypeArguments="viewModels:MyViewModel" 
    xmlns:Mvx="clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms"
    xmlns:viewModels="clr-namespace:MyProject.Core.ViewModels;assembly=MyProject.Core"
    x:Class="MyProject.MyView">
    <ContentPage.Content>
    </ContentPage.Content>
    
Sign In or Register to comment.