rid00z / FreshMvvm

FreshMvvm is a super light Mvvm Framework designed specifically for Xamarin.Forms. It's designed to be Easy, Simple and Flexible.
Apache License 2.0
594 stars 172 forks source link

Xamarin forms previewer not working with FreshMvvm #241

Open arvindrajachourasiya opened 6 years ago

arvindrajachourasiya commented 6 years ago

I am developing test project using FreshMvvm, SQLite to displaying lists of Students. But Xamarin.Forms Previewer window not working with it.

XAML file which not showing up in previewer

<ContentPage.Content>
        <StackLayout>
            <Label Text="Welcome to Xamarin.Forms!"
                VerticalOptions="CenterAndExpand" 
                HorizontalOptions="CenterAndExpand" />
        </StackLayout>
 </ContentPage.Content>

I am using FreshMvvm & SQLite to my project. I have installed 3 libraries from nuget

  1. sqlite-net-pcl 1.5.231 by Frank A. Krueger
  2. FreshMvvm 2.2.4

I am following this article

Steps to Reproduce

Create Xamarin.forms project & add above libraries Do CRUD operation using FreshMvvm by following above article. If you are following above article-- Execute app

Basic Information

Using xamarin forms with sqlite & FreshMvvm with visual studio IDE & the little related issue I got with same exception

IDE Info & Installed Xamarin

Microsoft Visual Studio Enterprise 2017 Version 15.8.5 VisualStudio.15.Release/15.8.5+28010.2036 Microsoft .NET Framework Version 4.7.03056

Installed Version: Enterprise

Architecture Diagrams and Analysis Tools 00369-60000-00001-AA519 Microsoft Architecture Diagrams and Analysis Tools

Visual C++ 2017 00369-60000-00001-AA519 Microsoft Visual C++ 2017

Application Insights Tools for Visual Studio Package 8.13.10627.1 Application Insights Tools for Visual Studio

C# Tools 2.9.0-beta8-63208-01 C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Microsoft Visual Studio Tools for Containers 1.1 Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

NuGet Package Manager 4.6.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Visual Studio Tools for Universal Windows Apps 15.0.28010.00 The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin 4.11.0.776 (d15-8@1ae9b59d7) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer 4.15.9 (d000f568b) Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates 1.1.116 (9619170) Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK 9.0.0.19 (HEAD/a8a3b0ec7) Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK 12.0.0.15 (84552a4) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Below Screenshot Previewer widnow, Not showing controls

tinyfresh

Charuwaka commented 5 years ago

Basically Previewer Wont Work Properly.(from Xamarin Forums) Its working for me sometimes after deploying App

arvindrajachourasiya commented 5 years ago

Where & how to deploy app?

libin85 commented 5 years ago

@arvindrajachourasiya : Almost all major frameworks have issues with Xaml previewer. And we will requires fair bit of work to fix these errors. To my knowledge, Microsoft is also working to make previewer better. You should also give a try with LiveXaml. It works well with almost all of my projects. Note: Its not free

arvindrajachourasiya commented 5 years ago

@libin85 - Are you official FreshMvvm person? If yes how could I/someone know that. So that people can rely on you what you are saying.

libin85 commented 5 years ago

@arvindrajachourasiya : I am not the maintainer of this open source repo(if thats what you meant). But I do contribute to this repo. I would say you should'nt rely neither on me or anyone else for that matter. But on your own findings. If you do a quick googling you can find that almost every major MVVM frameworks have intermittent issues with Previewer. Or alternatively check their github issue pages.