xamarin.forms

Project is not compatible with uap10.0.16299 (UAP,Version=v10.0.16299)

强颜欢笑 提交于 2021-02-20 05:27:08
问题 I have created Xamarin project which is in .NET standard. Now I am trying to add .NET core 5.0 Class library reference in Xamarin project and i am getting below error. Any solution will be helpful. Severity Code Description Project File Line Suppression State Error NU1201 Project Db.Models is not compatible with uap10.0.16299 (UAP,Version=v10.0.16299) / win10-x86. Project Db.Models supports: net5.0 (.NETCoreApp,Version=v5.0)ui.UWP 回答1: I have created Xamarin project which is in .NET standard.

Xamarin.Android, AndroidManifest.xml, AndroidManifestMerger, xmlns:tools schema, replace always manually

烂漫一生 提交于 2021-02-19 07:49:05
问题 When compile my Xamarin Forms Android application, visual studio, show me an error's list of AndroidManifest.xml conflict, for example: /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(3,3): Error AMM0000: is also present at AndroidManifest.xml:14:9-41 value=(@string/app_name). (AMM0000) /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(3,3): Error AMM0000: Suggestion: add 'tools:replace="android

Covert video file to audio file in Xamarin Forms

纵然是瞬间 提交于 2021-02-19 06:00:50
问题 I am trying to create an app that allows a user to download the audio of youtube videos in Xamarin.Forms. I can download the video using 'VideoLibrary' and convert it to an mp3 using 'MediaToolkit' in a C# Console Application without any errors. static void DownloadAudio(string videoUrl, string saveDir) { YouTube youtube = YouTube.Default; Video vid = youtube.GetVideo(videoUrl); File.WriteAllBytes(saveDir + vid.FullName, vid.GetBytes()); string originalFile = saveDir + vid.FullName; var

Xamarin.Forms: Platform-indepenent application menu

為{幸葍}努か 提交于 2021-02-19 04:39:27
问题 I'm writing a Xamarin.Forms desktop application, and I'll ultimately want to target MacOS and Windows. Does Xamarin.Forms have any platform independent mechanisms which you can use to build the application menu (i.e. the one where you find "File", "Edit", "View", etc; and which appears in the MacOS menu bar at the top of the screen)? The most I've found is the Xamarin.Forms.Menu and Xamarin.Forms.MenuItem classes, but I'm not clear on what they actually do or how to use them. 回答1: Although

What is the difference between the old ListView and new CollectionView in Xamarin 4?

ぐ巨炮叔叔 提交于 2021-02-18 21:12:08
问题 I don't understand what is different in Xamarin Form by new version 4.0 between old ListView and new CollectionView. Why is better to use CollectionView? I se help in microsoft docs, but don't se anything better. public CollectionView (); 回答1: The CollectionView is a flexible and performant view for presenting lists of data using different layout specifications. BUT The ListView is an ItemsView that displays a collection of data as a vertical list. Conclusion: if you want to display things

What is the difference between the old ListView and new CollectionView in Xamarin 4?

匆匆过客 提交于 2021-02-18 21:10:46
问题 I don't understand what is different in Xamarin Form by new version 4.0 between old ListView and new CollectionView. Why is better to use CollectionView? I se help in microsoft docs, but don't se anything better. public CollectionView (); 回答1: The CollectionView is a flexible and performant view for presenting lists of data using different layout specifications. BUT The ListView is an ItemsView that displays a collection of data as a vertical list. Conclusion: if you want to display things

What is the difference between the old ListView and new CollectionView in Xamarin 4?

只谈情不闲聊 提交于 2021-02-18 21:09:29
问题 I don't understand what is different in Xamarin Form by new version 4.0 between old ListView and new CollectionView. Why is better to use CollectionView? I se help in microsoft docs, but don't se anything better. public CollectionView (); 回答1: The CollectionView is a flexible and performant view for presenting lists of data using different layout specifications. BUT The ListView is an ItemsView that displays a collection of data as a vertical list. Conclusion: if you want to display things

What causes “unrecognized selector sent to class” error on Xamarin Forms build?

夙愿已清 提交于 2021-02-18 20:48:05
问题 A few things about my system first: Mac OS version 10.13.6 Xcode version 10 Visual Studio for mac 7.6.6 I'm completely new to Xamarin forms and want to play around and learn. All I'm trying to do is simply create a new xamarin forms solution and get it to build. Here are the steps I went through: create new project choose "blank forms app" in C# from the app submenu of multplatform target platforms both Andriod and iOs; shared code .NET Standard don't bother with version control or app centre

Xamarin Forms, Sqlite, EF Core 3, migrations, and lot of confussion

孤街醉人 提交于 2021-02-18 07:56:25
问题 I have a Xamarin Forms app that I have switched from using only restful API to using local SQLite DB, that will sync using this Dotmim.Sync - DB Sync'ing Framework (which is great!). I am using EF Core 3 in the Xamarin forms project to interact with SQLite. My questions are around running migrations or just database updates on SQLite. I have read several blogs and forums about different approaches, but they all are several years old, from EF Core 1 to EF Core 2, and lots of work around. https