Questions tagged .net

Explore the latest questions and answers asked by our top developers.

Xamarin.iOS Archive fails after icon image changed

I am using Windows VS2019, with paired Mac. When I archive my Xamarin.iOS with default icon image, everything works, but when I replace images in asset catalog (only images, filenames are same) got this: Severity Code Description Project File Line Suppression State Error System.IO.FileNotFoundException: Could not find file "/Users/Username/Library/Caches/Xamarin/mtbs/builds/Mealhint.Client.iOS/7dd3a1380dfc2b33cb9d05b42b9a01ca/obj/iPhone/Debug/actool/bundle/[email protected]" File name: ‘/Users/Username/Library/Caches/Xamarin/mtbs/builds/Mealhint.Client.iOS/7dd3a1380dfc2b33cb9d05b42b9a01ca/obj/iPhone/Debug/actool/bundle/[email protected]’ at System.IO.FileStream..ctor (System.String […]

By Bartek Chy y
Published
Categorised as Uncategorised Tagged , , , ,

Xamarin IOS in Visual Studio Preview 19 says IOS Designer going away, but no links on how to use Xcode

Does this mean I have to code on my mac now for ios if my visual studio updates. I had a side by side installation so I am using my Visual Studio 2019 preview for now. Is there a way to design ios apps on Xamarin for the preview Visual Studio? IS this being worked […]

By Natty Trey
Published
Categorised as Uncategorised Tagged , ,

Can a .Net Standard class lib execute a function reference passed from its Xamarin.ios console app?

I want a Xamarin.ios console app function A to pass a reference to function B as an argument to function C in a .Net Standard class lib, and have the class lib function C execute function B. MAP… Xamarin.iOS console app contains: function A() – calls function C( ref to function B ) function B() […]

By Doug Null
Published
Categorised as Uncategorised Tagged , , , ,

How to get a .Net Standard class lib to execute CoreBluetooth functions?

How can I get my .Net Standard 2.0 class library to execute a CoreBluetooth (BLE) function (eg. read value)? My solution has a Xamarin.iOS class lib with CoreBluetooth but the .net stndard class lib can’t reference that. the solution’s top app is a Xamarion.iOS console app, which references both the two projects (.Net Stnd class […]

How can I put in device settings options to grant access to camera and photo library in Xamarin Forms iOS project

I’m working on Xamarin forms application and for the iOS project I need to an entry for the application in the device settings with two option in order to user can grant access to device camera and photo library. How can I do that? PS: I tried with Privacy options in the info.plist file but […]

By rvd dan
Published
Categorised as Uncategorised Tagged , , , ,

Xamarin Forms – Navigate to another page

I’m using Xamarin Forms for Android and IOs app. I have two pages, Login page and Main page. The logic I want to implement is: Check if user is Logged In, If no open "Login" page, if yes go to "Main" page. I was trying to implement this using NavigationPage and Navigation.PushAsync method. But method […]

By Gleb
Published
Categorised as Uncategorised Tagged , , ,

C#: Unable to cast object of type ‘System.Int64’ to type ‘System.Int32’

I have code as follows: Dictionary<object, object> dict = … Color = (int)dict.GetValue(“color”); When I convert the Color to an int, I get the following exception: System.InvalidCastException: Unable to cast object of type ‘System.Int64’ to type ‘System.Int32’. I am not sure why I can’t just cast from a long to an int. I know for […]

By Kostub Deshmukh
Published
Categorised as Uncategorised Tagged , , ,

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq