Upgrading WinJS 2.0 to WinJS 4.4

image

I’m working on upgrading an app from the STY Windows 8 Apps with JavaScript and HTML5 book I wrote several years back. So my first task was upgrading it from a Windows 8 app to a Windows 10 Universal app.  Making an app once and having it run across lots of devices is a great thing.

In Visual Studio, which is what you would have used for a WinJS 2.0 application, you can download WinJS 4.4 from NuGet. WinJS is actually also available as a bower, grunt or npm package. As of WinJS 3.0, it went cross platform and is no longer tied to only Windows development. You can use WinJS on your websites for example.

http://try.buildwinjs.com/download/GetWinJS/

To get started, create a new Windows Universal App using JavaScript and then copy over your existing files from your original WinJS 2.0 project.

My default page was called default.html, but the new solution created an index.html page. If you have the same scenario, open up the package.appxmanifest in Visual Studio (to get a nice GUI) or via code to edit it directly and under the general application tab you will see Start Page as index.html. Change that to default.html and delete index.html.

In your pages that reference WinJS, for example the default.html or index.html, change //Microsoft.WinJS.2.0/ to /WinJS/ . By downloading WinJS through NuGet, it put the WinJS folder in your application.

Hopefully this will get you started on your way to upgrade your Windows 8 WinJS apps to Windows 10 Universal apps.

One last thing I’ll mention is that the package manifest has changed. You can see what has changed in Microsoft’s documentation here:

https://msdn.microsoft.com/library/windows/apps/dn705793.aspx

Have fun upgrading your WinJS apps!

Can’t Wait for HoloLens

It is difficult to describe how excited I am about HoloLens. I can’t wait to have one of these devices in my hands.

 

With my XNA and Unity background, I’m expecting to be able to make some interesting experiences. I plan to do some training for folks getting started with HoloLens.

I was hoping that the developer edition would be released as I had a January date in my mind for some reason. Regardless, I’m sure it will be worth the wait.

For now, I making sure I have all of the right tools on my machine.  I already have Unity. Speaking of which, if you haven’t seen the demo from Unite 2015, take a look. I already have it queued up to where he is going to show off the HoloLens.

https://www.youtube.com/watch?v=rcqK0WnUzbI&start=1143

 

I have Visual Studio 2015. I actually have the Ultimate edition, but I’m sure even the Community edition will allow development for the HoloLens.

I think this is going to be huge. I can’t wait! Are you ready to start developing code for the HoloLens?

Screamride is 100% complete with all achievements

The final video is on YouTube. This was the completion of the game. All levels at 100%. I believe this unlocked 5 or 6 achievements at the end.

Check it out!

 

If there is interest, I can upload the rest of the levels at 100% as well.

Screamride – What a fun game!

It may be the death of me, but I’m going to complete the Screamride game. I’m enjoying the game and thought I’d video the gameplay and upload it to YouTube.