Entries in ‘Windows 10 IoT’

Sorry, this entry is only available in 日本語.

Followings are the tips I got using Xamarin.Forms for several days.

1. Can’t build automatically with F5

The project runs immediately with F5 so I did build & deploy manually in each debug. But I found the checkbox of [Configuration Manager]-UWP project build and deploy, Is it off as default?

2. I got exception in Release mode

I get System.PlatformNotSupportedException: ‘Arg_PlatformNotSupported’ exception when I run Shared Project MainPage. No exception in Debug mode. When I skip this exception, the app runs well. What is it?

3. Xaml intellisense dead

The worst trouble is this. It works some time but after doing something, intellisense will be dead. In UWP context, I haven’t seen intellisense works correctly. I get error like “ContentPage was not found” and have very little choice of code. In Android/iOS context, it works some time but after some operations, intellisense window does not show. In that situation, after removing shared project reference from Android/iOS project and add them again, iintellisense comes again… or not?

The plan of running Weather Typing on Raspberry Pi. I ported logic so I’m making screens.

This is an image 2 weeks ago. With mobile battery, I can take it to anywhere.

This is current image. I can type words with keyboard.

I have platform dependent implementation like keyboard but if I implemented that, the same application will work on Windows 10 IoT on Raspberry Pi, Windows Store (UWP), Android, There seems to be iOS.Xamarin Mac so can it work on Mac?

I can implement battle feature with at least Windows store. In Android, maybe I can implement guest
feature.

And I can use Raspberry Pi feature so I tried hardware. When I press a key on keyboard, LED will be ON/OFF.

Achieving this, I can start that project I wanted to do. I will report here later.

The current goal is running Weather Typing on Raspberry Pi but I wan’t to run it on mobile at the same time so I tried Xamarin.Forms I was interested in.

When I created a cross-platform project in Visual Studio 2017, I got Shared Project and UWP/Android/iOS projects. I can test on UWP before testing on Windows 10 IoT, that is convenient.

There are many way to achieve cross platform development. At first, I can use Portable Class Library (PCL) as is. I can port WPF common project to Shared Project and use ifdef for each platform. The better way may be making interface in PCL and using Dependency Injection but I have too many classes.

Shared Project is not a DLL not a static library. That project will be merged to each platform project. I thought the define value should be defined for each platform but that was not true. I defined platform dependent value such as _UWP__.

How about XAML cross platform? In some books. I can choose using Xamarin Forms or I can make
each platform screen. I wan’t to try Xamarin Forms! But… I think making each platform screen is easier. I don’t see screen image in develop phase, that is okay. But intellisense will be dead when I wrote wrong code. And do I have to Build & Deploy manually before debug code? I think it will be fine after I got some tips, right?

I concerned about GPIO. Does it work with Xamarin? Yes, I can add reference GPIO library from UWP project. Is it normal UWP app instead of Xamarin emulated .NET framework?

This is the first app with UWP on Xamarin.Forms.

I’m trying to run Weather Typing on Raspberry Pi. I can use C# in Windows 10 IoT so started experiment.

As in MS page, copied image from Windows 10 IoT Core Dashboard to SD and run, but it stacks then ended up with BSOD (BAD SYSTEM CONFIG INFO). After that, I get BCD error and the end. I tried it several times
but no luck. After Googling, I get some information of power issue but I can’t use it with Surface charger.

Another topic, After installing Windows IoT, that makes many partitions. I don’t know which partition I have to delete so I deleted all the partition. But after that, Windows lost the SD card. That SD card was recognized after formatted it in Xperia.

After all, that was SD card issue. I can’t use TOSHIBA 16GB and can use ELECOM 16GB.

→That was because my TOSHIBA SD card was class 4. I bought it in convenience store. I bought ELECOM one in electric store so that was class 10.

As official 7 inch touch screen is shown up-side down so I launched Windows 10 IoT Core Dashboard to fix it. But I can’t use the first password I specified. But I got error. it seems the first password
was fixed to “p@ssw0rd”? I changed the password and finally I reversed display direction/

Next, I searched the way to remote control Windows IoT and found Windows Store App. I can remote login with a href=”https://www.microsoft.com/en-us/store/p/windows-iot-remote-client/9nblggh5mnxz?SilentAuth=1&wa=wsignin1.0″>Windows IoT Remote Client. I can start
develop Windows IoT app.