Coder Social home page Coder Social logo

FileNotFoundException - Could not load file or assembly 'DLToolkit.Forms.Controls.FlowListView' about dltoolkit.forms.controls HOT 16 CLOSED

daniel-luberda avatar daniel-luberda commented on August 10, 2024
FileNotFoundException - Could not load file or assembly 'DLToolkit.Forms.Controls.FlowListView'

from dltoolkit.forms.controls.

Comments (16)

daniel-luberda avatar daniel-luberda commented on August 10, 2024

Can you give me your xaml code? (namespaces definitions) I think it's the reason it isn't working.

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

This is important one:

xmlns:flv="clr-namespace:DLToolkit.Forms.Controls;assembly=DLToolkit.Forms.Controls.FlowListView" 

<flv:FlowListView></flv:FlowListView>

from dltoolkit.forms.controls.

jfversluis avatar jfversluis commented on August 10, 2024

Sure can!

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:static="clr-namespace:Kembit.BPA.Helpers;assembly=Kembit.BPA"
             xmlns:controls="clr-namespace:DLToolkit.Forms.Controls;assembly=DLToolkit.Forms.Controls.FlowListView"
             x:Class="Kembit.BPA.Pages.ChoosePizzaPage" Title="Kies je pizza..." BackgroundColor="{x:Static static:Constants.BackgroundColor}" IsBusy="{Binding IsLoading}">

<controls:FlowListView ItemsSource="{Binding PizzaList}" SelectedItem="{Binding SelectedPizza}" IsPullToRefreshEnabled="True"
                           RefreshCommand="{Binding LoadPizzasCommand}" IsRefreshing="{Binding IsLoading}" HasUnevenRows="True" SeparatorVisibility="None">
<!--ItemTemple etc.-->
</controls:FlowListView>

Got around it by copying the dll manually to the output folder on my Mac. Starting to think it is on my end, although Copy to Local is set to true.

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

That should work! Could you try flv instead controls?

BTW: Please mind there were some API changes in current repo that are not on nuget yet. I'll release it today.

from dltoolkit.forms.controls.

jfversluis avatar jfversluis commented on August 10, 2024

Doesn't help.. Weirdly it just seems to work when I manually include the DLL. But it will cause a problem when I will build a release package.

Another question; what is the easiest way to divide the ListView into two columns? I don't need anything fancy. Just want to show two columns of equal size :)

edit - Ah I see in the Xamarin Forums that you're adding new features for this? And they are in the NuGet you're releasing? I'll wait for that then!

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

If the problem exists only in release build, then it's definitely a linking issue. You should add those namespaces to linker exclude options. I will investigate that.

Another question; what is the easiest way to divide the ListView into two columns? I don't need anything fancy. Just want to show two columns of equal size :)

Just add 2 same columns definitions. Are you using the nuget dll? or current dll? The api changed (old methods are obsolete.

With new api something like that:

<flv:FlowListView x:Name="FlowListView" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"
    FlowItemsSource="{Binding Items}" SeparatorVisibility="None" HasUnevenRows="true" >

    <flv:FlowListView.FlowColumnsTemplates>
        <flv:FlowColumnSimpleTemplateSelector ViewType="{x:Type local:Views.YourCustomView}"/>
        <flv:FlowColumnSimpleTemplateSelector ViewType="{x:Type local:Views.YourCustomView}"/>
    </flv:FlowListView.FlowColumnsTemplates>

</flv:FlowListView>

...and that's all. I'll update samples soon with better ones.

from dltoolkit.forms.controls.

jfversluis avatar jfversluis commented on August 10, 2024

I'm using the NuGet!

So I'll wait for the new version of that!

Meanwhile I've found a sort-of cause to my problem. It seems that when there are no code references to the FlowListView the DLL is rendered non-used while building and thus not included.
When I add a bogus declaration in the code-behind like var foo = new FlowListView(); the problem is resolved.

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

Yes. I'll create static method to avoid linking issues when using only XAML. Something like FlowListView.Init(); If you want to test it before release, here is dll
https://mega.nz/#!RVAUlZzY!vbnr7LMqAxMKS18fnemIVBBMmblsel5ww8A5BaFHFIg

Yes, it's just a single DLL.

from dltoolkit.forms.controls.

jfversluis avatar jfversluis commented on August 10, 2024

Awesome! I will check it out! Thanks! :)

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

You can now try alpha nuget https://www.nuget.org/packages/DLToolkit.Forms.Controls.FlowListView/1.0.3-alpha1

from dltoolkit.forms.controls.

pcdus avatar pcdus commented on August 10, 2024

Hi Daniel, I meet the same error whereas I have copied code that works in a project to another one...

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

Do you use it in XAML only?

  • Make sure you call FlowListView.Init() somewhere
  • Make sure you add nugets to all projects (shared and platform specific)

from dltoolkit.forms.controls.

pcdus avatar pcdus commented on August 10, 2024

Yes, I use it in XAML only.
As I wrote you through the Xamarin forum, I meet this problem only under the iOS project.
I just added the nugets to the iOS project but it didn't change anything...

I don't understand cause I use the FlowListView without any problem in another solution. In this solution, I only added the nugets in the PCL and all works fine.

In add, I don't see where I must place the call "FlowListView.Init()"? I don't use it in the other solution, and I don't find it either in your sample "DLToolkit.Forms.Controls"...

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

Put it in AppDelegate in iOS project, after Xamarin.Forms initialization.

from dltoolkit.forms.controls.

pcdus avatar pcdus commented on August 10, 2024

Thanks it's working like this.
Is there any reason that I must use this for a project and not for another one?

from dltoolkit.forms.controls.

ask-himanshu avatar ask-himanshu commented on August 10, 2024

DLToolkit.Forms.Controls.FlowListView.dll.so' not found issue is coming what should i do to resolve this issue

from dltoolkit.forms.controls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.