Category Archives: Windows

Nuget: Your project.json doesn’t list ‘win10-x86’ as a targeted runtime

Recently I was working on a small UWP app on my SurfaceBook and everything was fine. But when I pulled the code from GitHub down to my main machine I got the following error:

Your project.json doesn’t list ‘win10-x86’ as a targeted runtime. You should add ‘”win10-x86″: { }’ inside your “runtimes” section in your project.json, and then re-run NuGet restore. 

After a while I figured out that this error is totally misleading, and the real problem is that your Nuget package source has been disabled. I have a feeling this was related to installing Visual Studio 15 preview.

Anyway, to fix it: Click Tools > Options > NuGet Package Manager > Package Sources, and then re-enable (or re-add) the sources.NuGet Package Manager

Vox Telecom Windows App

We recently switched from Afrihost “Business” Uncapped to Vox Telecom capped so that we could do cool things like actually load websites and stuff. However monitoring cap from their website is quite a pain

So I made a Windows Universal app in a few evenings. It’s been in the store for a couple weeks now and it seems to be working well for people, so I’m posting here.
Continue reading

Varsity College

An interesting way to judge hackathons

A while back Taylor Gibb, Gordon Beeming, and I held a Windows Phone hackathon at Varsity College. Generally when we hold a hackathon the challenge is to build a Windows Phone (or Windows) app over the weekend, and then we award the “best” app with a phone etc. We walk around to each person and score their app against various criteria like quality, relevance, functionality, etc. The problem with this is that it is very formal. We aren’t in the business of rating code, and hackathons aren’t really about making the perfect app in a few hours. Hackathons are about learning and having fun.


We decided that it could be fun to let the attendees do the judging instead – but that was just as rigid and structured as us doing it. So Taylor came up with a rather interesting voting system to let attendees judge each others’ apps, which we then coded.

Continue reading

Localizing Windows Store app not working? Read this.

I just wasted a rather large amount of time on something really stupid – so maybe this quick post can save someone else.

I needed to localize a Windows Store (8.1) app and I had an “AppResources.resx” file from the Windows Phone version which had all the strings. I followed this MSDN guide on how the new localization stuff works in Windows Store apps.

In that guide, section 1.C.V  says the following:
”If you have .resx files with only string resources from previous .NET projects, select Add > Existing Item…, add the .resx file, and rename it to .resw.”

So that’s exactly what I did to convert my old resource file into the new .resw style, because, you know, I trust that Microsoft’s docs are correct. Hours later after none of my TextBlocks ever reading from the resource file I re-read the guide and decided to just create a new .resw file – and hey, it worked!

TL;DR: Microsoft lies, don’t use your old .resx file – create a new .resw file and copy the values across.

IsolatedStorageSettings wrapper for Windows 8

Just a quick post on something I came across. While porting a Windows Phone app to Windows 8 (XAML) I noticed that all the calls to IsolatedStorageSettings are invalid as that doesn’t exist anymore. So because I am lazy and didn’t want to change any code I wrote a tiny wrapper around the new way. Once you’ve added the class all your existing code will work fine 🙂

Continue reading