bitfoundation / bitplatform

Build all of your apps using what you already know and love ❤️
https://bitplatform.dev
MIT License
1.08k stars 225 forks source link

Error : Cant Resolve Type (Xamarin.Forms) #427

Closed matinfathi19 closed 3 years ago

matinfathi19 commented 3 years ago

hi bro I installed Bit.Client.Xamarin.Controls (ver 7.0.0) by Nuget In My Xamarin.Forms Project (.NetStandard 2) and then added Its NameSpace in Page1.Xaml Which is My start page in App.xaml But On Rebuilding The Project I Have An Error : Cant Resolve Type Lock At Picture : error How To Solve This ?

ysmoradi commented 3 years ago

Have you applied these configurations carefully? https://bitfoundation.gitbook.io/bit-docs/xamarin-client-intro/getting-started

matinfathi19 commented 3 years ago

I Forgot To Insert This Line After InitializeComponent() In App.cs ==>> BitCSharpClientControls.Init(); ("Solved")

But Now , After Rebild Project I Have This Error error

Then When I Delete Highlighted Line , Project Will Run Successfully But Look At Persian Calender The Year Is In Miladi error Now What To do Moradi Jan?

ysmoradi commented 3 years ago

You can't delete that line and achieve expected results. Have you added noda namespace to xaml usings?

https://github.com/bitfoundation/bitframework/blob/develop/Samples/CSharpClientSamples/Controls.Samples/Samples/BitDateTimePickerSampleView.xaml#L7

xmlns:noda="clr-namespace:NodaTime;assembly=NodaTime"
matinfathi19 commented 3 years ago

Now Every Thing Is Ok . Thanks Joneh Del.