Search
Saturday, October 19, 2019 ..:: Home ::.. Register  Login

Peter Henry on Facebook  Peter Henry on LinkedIn  Peter Henry on Twitter

   Calendar  
     
  
   Search  
     
  
   Blogroll  
     
  
   Disclosure  
All blog entries are the opinions of the author and do not necessarily reflect the opinions of their employer. All the code presented is for explanation and demonstration purposes only. Any damages incurred to your site and/or data are not the responsibility of the author. Every effort is taken to ensure the code properly compiles, however sometimes there are some hiccups and you might be required to do your own debugging.
     
  
   TechTidBits (Blog)  

Microsoft makes a HUGE splash in the mobile market today at Mix 2010 in Vegas! And my first Hello World WP7 App!

Mar 15

Written by:
Monday, March 15, 2010 9:41 PM  RssIcon

Mix 2010Today, Microsoft announced Windows Phone 7 development details at Mix 2010 in Vegas!  Read on for more information and check out my first WP7 App!

Mix 2010Today, Microsoft announced the Windows Phone 7 development platform, and WOW!!!!!!!!  What a splash MS made today!  I was glued to my machine listening to the whole thing!  Uh..oh...uh, ya, boss, I was uh, doing doing my project work while listening, really I was!!!!  (Well, to be honest, he was listening too LOL)

If you want to check out the running dialog, check out the live tweets (at the begining).  There's a BOAT load of cool info discussed today.  Among the highlights:

  • ALL DEV TOOLS AVAILABLE NOW AND FOR FREE!!!!!!!!!!!!!!!!!!!!!!!!!
  • Marketplace is changing for the better, the Try button is AWESOME!
  • Emulator is sweet and stable
  • SL 4 for the phone = Visual Studio/.NET/C#/VB.NET you already know!
  • Did I mention THE TOOLS ARE FREE AND AVAILABLE NOW!!!!!!!!!!!  (Links to come as well as install review)

So what's the big deal about all this?  Well, if you're an iPhone/Android developer, you might be scratching your head going "What's the fuss all about?"  And ya, you'd be fair in that assessment, BUT from us MS .NET devs who've been CRAVING mobile development, THIS......IS........AWESOME!!!!!!!!!!!!!!!!!!!!  Quite simply incredible!  Me!  A C# developer who lives'n'breathes Visual Studio can now make a Silverlight application and deploy it to a smart/cell phone!  Uh, ya, that's the one small hiccup, there's no HW yet that we can play with.  Ouch. BUT, to be completely fair, the emulator is nearly bullet proof and works like a CHAMP!!!!

Ok, so what?  Enough with the marketing shpeel geek, get us to the development!  Ok, fair enough!  Check out this link and "Download the Developer Tools" on the next page.  Warning, before you get too excited, I have to warn you, there's ONE download!  Ya, one!  Well, there are more, MANY more downloads, BUT to get started there's only one you need, and here it is!

WP7 dev tools download

That download will be the opportunity and glorious awakening of all dishardened souls from microsoft developers who've been starving for mobile development since the iPhone was released!  Can you hear the choir singing in the background?  Oh, sorry, were you expecting a "fair and complete competetive analysis" of the iPhone vs the WP7 devices and development environments?  HAHAHAHAHAHA LOL LOL  Good one!  ahahahahahah  You obviously don't know me very well, ya, this is a slightly slanted blog towards MS, but I come by it honestly! LOL

Anyways, back to business.  Once it's downloaded, you can run it.  Here's a blow by blow screen caps of what you can expect.  The first screen is the typical "Are you sure you want to do this?"

Setting up the WP7 dev environment

Next, I found this interesting how BIG the Install Now button is.  Is Microsoft proud of what they've just accomplished or what? LOL

Install is one big button

I usually do a custom install, and this time's no different.  Interesting there's nothing to select.  HAHA  Maybe they put that button in there for people like me?  Probably. HAHA

Custom install

The next four screen caps are of the downloading of the actual WP7 CTP.  OH, you thought you were downloading everything with that 3.2MB file?  I don't think so!

Starting to download

Emulator download Good, getting the emulator, awesome!

XNA Game Studio download XNA Game Studio, interesting!

SL4 download Silverlight 4 download, awesome!  COOL!

Now we're done downloading the BIG pieces, now we just do the actual installation.

Installing the pieces

 After a good 20-30 minutes (at least you don't have to babysit it, unless you want to watch? LOL) it should/will finish without incident.

Finishing the install

AHA THERE WE GO!  Done!  You think Microsoft is proud of what they've done?  There's that BIG BUTTON AGAIN! LOL

Success - Install done!

After you click that bit shiny button (the only thing MS could have done worse was make it RED and said DON'T PRESS HERE LOL) you'll see a brief dialog...

First loading up VS2010 for the first time

And then Visual Studio 2010 will open and you'll see something new!  This is your first clue you're not in Kansas anymore Toto!

First screen you'll see in VS after opening

If you click on the Create Windows Phone 7 Applications link, you'll see this (after all that's why we're here right?).

Clicking to create WP7 applications

Next, I decided to try out a simple and typical Hello World sample.  I saw it today, and I figured I could do it too!  Let's try it out.  Cool!  Goto setup a New Project.

New Project templates

This is where things started to fall of the rails.  hhhhmmmm what is going on here guys?  This is supposed to be easy I thought?  How much simpler can a Hello World project template be man?  What was I expecting?  Well, no Uncaught Exceptions on the Phone UI rendering for starters!

First time things start to fall apart

Hhhhhmmmmmm ok, small hiccup, let's keep plugging forward!  We'll use brute force to figure this one out eh?! YA!

F5 the project and let VS do it's stuff.  The emulator runs, that's gotta be a good sign, right?

Emulator still runs

VS is connecting to the emulator, another good sign.

VS connecting to emulator

In the infamous words of Homer Simpson.........DOH!

Still no dice!  DOH!

HHHHMMMMMM Keep plugging through this, we can do it right? Try editing some XAML and try again!  hhhmm nope, DOH DOH!

Intellisense seems to be lacking in some places

At this point, I start to wonder what COULD be doing wrong?  Microsoft COULDN'T have gotten this screwed up?  Tell me it just ain't so guys?!  Well, what do we usually do when things like this happen, yup, three finger salute and reboot!  LOL  And you know what? 

BINGO!!!!!!!!!!!  THAT DID IT!  SO?  What's the moral of the story here?  After installing the CTP, reboot!  Yup, REBOOT and you'll be GOLD!  The phone UI renderingn works like a charm, the intellisense works, F5 works, everything is good again!

Good as gold after reboot  

At runtime, the emulator works like a champ!

  There we go, it's working now

At this point, I'm learning some new things about WP7 development.  You COULD hit the X button on the Emulator.

Closing the emulator with the X button

But doing that would stop the emulator COMPLETELY.

Closing the emulator with the X button

The alternative is to hit the SHIFT+F5 in Visual Studio to stop debugging.  This does two things, stops your mobile app from running (cool) and second doesn't kill the emulator so the next time you hit F5 to run/test your app again, you don't have to go throgh all the reinitialization again.

At this point, I started to poke around and realized, you know, this version of Visual Studio don't look normal.  What's different?  Playing the "what's not the same with these two pictures?" game, I came up with this.  The top VS is a WinForms project I blogged about yesterday.  The VS below it, is the WP7 CTP version I just installed.

 Comparing two versions of Visual Studio

And that's not your first clue, oh no.  Check out your Start Menu.  The last one is the WinForms project you're used to seeing, while the first one is the WP7 CTP and the second one is the emulator running.  Interesting.

Start Menu and different versions of VS running

Next I checked out the Tools, Options, and they are severely scaled back too.

Tools, Options not the same

At this point, I just wanted to get back to coding, so I checked out my old friend Intellisense.  AAAAHHHHHH THERE you are my good old friend.

Intellisense

Next, I wanted to tweak the Hello World juuuuuust a bit more.  THERE!  PERFECT for my first night's WP7 work!  LOL

There we go, that's MUCH better

There you have it!  A simple Hello World Windows Phone 7 application in Silverlight!  That is cool!  And ONLY ONE DOWNLOAD!!!!!  The only secret is to reboot AFTER you install the CTP!  I do hope to continue with doing WP7 development, I hope you come back to my blog to check it out.  And with that, it's time to go grab a coffee and get coding!

 

PS  There are other downloads for Blend but I've chosen to focus just on Visual Studio tonight and getting the simple Hello World demo running.  I'll blog another night about the Blend experience.  I hope you come back.

 

Resources:

Source Code: http://www.pchenry.com:8080/svn/blog/trunk/2010/HelloWorld

Microsoft: Windows Phone Developer Tools CTP

MIX 2010

Joey DeVilla's technical blog (Canadian MS evangelist present at MIX)

Colin Melia blog (XAML/SL/BLEND GURU who's also present)

Laurent Duveau blog (another Canadian present, SL MVP)

 

Tags:
Categories:
Location: Blogs Parent Separator TechTidBits

10 comment(s) so far...


Re: Microsoft makes a HUGE splash in the mobile market today at Mix 2010 in Vegas! And my first Hello World WP7 App!

Hi,
I didn't have to reboot after install.
I just installed, fire VS, create a Phone App and hit F5 and it worked!

By Laurent on   Tuesday, March 16, 2010 6:46 PM

Re: Microsoft makes a HUGE splash in the mobile market today at Mix 2010 in Vegas! And my first Hello World WP7 App!

Hey Laurent! Is this the Laurent from Samedi.NET? If it isn't, hey that's cool too, more the merrier! If it is, great to see you! I hope you're doing well at the conference! :>

re no reboot required
That's what I was wondering and I couldn't believe it neither which is why I wanted to grab a screen cap to prove I wasn't COMPLETELY NUTS! (don't hold the Touch discression against me LOL). So it's just something with my machine then? Oh well, c'est la vie I guess.

Thanks for reading and the comment! Have good day!

By phenry on   Tuesday, March 16, 2010 6:48 PM

Re: Microsoft makes a HUGE splash in the mobile market today at Mix 2010 in Vegas! And my first Hello World WP7 App!

Hey did you know that you if you have a non express version of VS 2010 (say ultimate/pro) already installed, you will be able to create WP7 projects within that version too, apart from the VS 2010 Phone Express version!
That way you would get increased menu options too. (all those that you see in that other IDE)
So all you have to do is open the "New Project Dialog" in VS Pro/Ultimate (2010) and search for the phone templates. By the way, they work fine side by side too :)

By kk on   Saturday, March 20, 2010 1:35 PM

Re: Microsoft makes a HUGE splash in the mobile market today at Mix 2010 in Vegas! And my first Hello World WP7 App!

Hey KK, that's awesome news! I had no idea you could do that! Oh man, too cool! (can you tell I love my VS and I hate losing my shortcuts) I'm going to try this out tonight! Thanks again for the heads up! I love this blogging thing and reading tips from all over the world! Thanks kk!

By phenry on   Saturday, March 20, 2010 1:36 PM

Re: Microsoft makes a HUGE splash in the mobile market today at Mix 2010 in Vegas! And my first Hello World WP7 App!

Hey kk, I'm working on a blog at the moment highlighting what you commented on! I hope you don't mind! Thank you for the heads up!

http://www.pchenry.com/Home/tabid/36/EntryID/278/Default.aspx

By phenry on   Sunday, March 21, 2010 2:14 PM

Re: Microsoft makes a HUGE splash in the mobile market today at Mix 2010 in Vegas! And my first Hello World WP7 App!

A good video can be found on this Dimecasts.net link.
http://www.dimecasts.net/Casts/CastDetails/169

By phenry on   Thursday, April 01, 2010 1:26 PM

Re: Microsoft makes a HUGE splash in the mobile market today at Mix 2010 in Vegas! And my first Hello World WP7 App!

I count 10 LOLs.

By mgroves on   Tuesday, April 06, 2010 8:43 AM

Re: Microsoft makes a HUGE splash in the mobile market today at Mix 2010 in Vegas! And my first Hello World WP7 App!

Haha he MGroves, I guess I was quite happy to get this up'n'running! LOL DOH! The other problem is with this blog module from DNN, you can't put smileys like :> in the main body of the blog. :< The angle brackets are taken as html tags and screws things up way too much. I COULD use the > and < which I did for a while, but aftwards you CANNOT edit your blogs otherwise you'll have to edit all the replaced < and > with < and > A PITA if you ask me.

Thanks for the comment MGroves, have a good week.

By phenry on   Tuesday, April 06, 2010 8:38 AM

Re: Microsoft makes a HUGE splash in the mobile market today at Mix 2010 in Vegas! And my first Hello World WP7 App!

Am... actually I'm very dissapointed! The latest April CTP is incompatible with Bing Maps! Yea that sucks :( Take a look -http://www.manyniches.com/windows-phone/signed-assemblies-bug-in-the-windows-phone-tools-ctp-refresh/ . The problem is the workaround they support doesn't really work for Bing Maps.
If you are using the previous tools (March 2010) then you are lucky.... Besides is there any way to go back to March tools?

By garfield on   Friday, May 21, 2010 11:05 AM

Re: Microsoft makes a HUGE splash in the mobile market today at Mix 2010 in Vegas! And my first Hello World WP7 App!

Thanks Garfield for leaving a comment. I COMPLETELY agree with you on the kacking on signed assemblies! I even wrote that on a couple of blogs for the WP7 people. As much as I wanted an updated/improved emulator, I would have MUCH rather waited another month for one without this unable to load signed assemblies bug. And like you say, MOST people I know who are doing WP7 dev are playing with Bing maps, and they're TOAST now.

Having said that, I think it does expose one flaw in the tool install process. Having to uninstall everything just to reinstall...is messy, time consuming, confusing, and unnecessary. I hope they fix that cycle next time.

In the meantime, I'm doing Silverlight dev and playing with non-signed assembly STUFF with WP7. That way I can still play with VS2010 and WP7 and not get mixed up in the PowerShell, add/change DLL references mess.

re any way to go back to March tools?
Not without uninstalling EVERYTHING, including VS2010 RTM. Nasty IMHO.

Thanks again for leaving a comment and I hope you come back soon.

By phenry on   Friday, May 21, 2010 11:18 AM

Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Add Comment   Cancel 
     
  
Copyright 1999-2012 by PCHenry.com   Terms Of Use  Privacy Statement