Microsoft Developer Evangelist
Uncategorized
How Do I: Test Impact Analysis in Visual Studio 2010
Jun 2nd
I used to work for a company that bragged that their flagship application had over 40,000 unit tests (no joke). I asked them if they had a CI process, and they looked at me funny. One of the reasons, they said, was that running a build with all the tests took way too long to run very frequently. It’s too bad their application wasn’t developed in .NET using Visual Studio 2010 so that they could take advantage of Test Impact Analysis. This new feature analyzes the code changes developers make and selects only the unit tests that have been impacted by the code change. The developer is free to choose between a subset of tests (those that need to be run based on the code changes made) or run the entire suite of tests for all-up testing. This short video will give you an overview of Test Impact Analysis and show you how to configure it in your Visual Studio 2010 Solution.
To see all the videos in this series, check out my channel on Vimeo
How Do I: Using Generate From Usage in Visual Studio 2010
Jun 2nd
For those using Test Driven Development processes in Visual Studio, you’ll be excited to here that there are some enhancements to the way Code Generation is done from within Visual Studio 2010. This short video shows you what those improvements are to a feature called “Generate From Usage”.
To see all the videos in this series, check out my channel on Vimeo
Developing for Windows Phone 7
Apr 9th
This is my first in a series of posts all about developing applications for Windows Phone 7 using Silverlight. After what I saw at the WPC and experienced at MIX10, I knew that I wanted to get involved in this as quickly, and as deeply as possible. I’m going to share with you my learning as I go through them, so that hopefully you can grow in experience along with me as you wait patiently for this Christmas when the WP7 devices will become available. My goal is to become an expert WP7 developer right in front of your very eyes!

For those that don’t know, Microsoft announced recently the new Windows Phone platform – Windows Phone 7 Series (recently renamed to Windows Phone 7 and abbreviated by me in this blog as WP7). The development platform is split – as an option, or combined – to be Silverlight and XNA. Silverlight is a great general-purpose option for folks doing personal productivity applications, fun casual games, or just about anything. What’s great about them choosing Silverlight as a dev platform is that many people are already experienced with Silverlight or WPF, and making the transition to WP7 is a total snap. XNA is great for building high-quality 3D interactive games that will really knock people’s socks off on Windows, XBOX and now Windows Phone 7 Series.
In this kickoff post, I’m going to describe the process for getting your dev environment set up, and some additional learning resources for you to use as you follow along with me as we learn to build WP7 applications. In future posts we’ll tackle data access, MVVM, the application model, notification and sensor platforms, hub integration, security and more, so tune into my WP7 category feed for updates to this series and other interesting WP7 tidbits. For now, let’s get started by putting our environment together and making sure it works.
WP7 Learning Resources
Besides this blog, there are a number of great resources out there for learning about WP7. I’ve been assembling a list of those links on my delicious account at http://delicious.com/chriskoenig/wp7. As I find new and interesting things, I’ll keep that list updated, so you can check back there frequently, or subscribe to the feed directly at http://feeds.delicious.com/v2/rss/chriskoenig/wp7. I want to call out a couple as top-priorities on your list of places to get started:
- http://developer.windowsphone.com this is the central hub of information for WP7. You can download the tools here as well as get updates on information coming from the WP7 team
- Windows Phone Developer Blog – the official blog of the WP7 team
- @wp7dev – the official WP7 Twitter account
- WP7 Forums – these are the WP7 forums. Lots of great conversations going on there!
Beyond that, knowledge of Silverlight will be assumed. If you are not already an established Silverlight developer, you might want to take some time between this intro post and the next one to brush up on a couple of key Silverlight concepts including layout, data binding, styling and networking. There are plenty of tutorials out on http://silverlight.net for you to enjoy.
Setting up your Environment
Installing the software is really easy – the WP7 team has done a great job packaging things up into a single installer to make things simple. Here’s the link for the installer:
This one-stop-shop will install everything you need to get started with WP7 development. A couple of notes:
- Installation of the tools does NOT require any previous version of VS2010, although it will integrate nicely with the RC if you already have that installed
- The currently build of the WP7 dev tools (as of this writing) will not work with Visual Studio 2010 RTM. Stay with the RC until the tools are updated if you want to do WP7 development (for now).
- You can not run the dev tools (specifically the Emulator) in a VM because of WP7 Emulator is actually a VM (more on that later). To do WP7 development, you’ll need to run the tools “on the metal”. You can run them in a Boot-to-VHD hosted partition, so that is an option for you as well.
Testing it Out
Once you have the tools installed, fire them up. You’ll notice the “Visual Studio 2010 Express for Windows Phone” icon in your start menu, so let ‘er rip. There are three project types – Windows Phone Application, Windows Phone List Application, and Windows Phone Class Library. The first is a clean, blank slate that works like most VS “File->New” project templates. Notice that the design surface is nice and big, and represents the entire device. When you press F5 to launch the debugger, you can see the Emulator kick in and display your application:
As I mentioned earlier, the emulator is actually more of a Virtual Machine than an emulator. Instead of pretending to be the WP7 OS, it runs the actual WP7 OS inside a VM.
Today’s Emulator doesn’t support all of the WP7 OS features (location and accelerometer support is missing), but it does a good start at representing many of them including location, and orientation – we’ll dive into all of these features in future posts. For now, it looks like the emulator is up and running, and the application deployed as expected. If your emulator doesn’t start up correctly – don’t be alarmed. I have run into a few instances where various problems occur. Restarting the debugging session, or restarting the Emulator always fixes this problem, but I try really hard not to ever restart the Emulator if I don’t have to. It’s not so important now, but it will make a bigger difference once we get into more advanced topics like the Notification subsystem.
I realize that this was an incredibly rudimentary post, but in the interest of completeness, you have to start somewhere, and I almost always like to start at the beginning. Don’t be disheartened, those of you with higher expectations. In the next post, we’ll dive into retrieving and manipulating data, and exploring the navigation system. We’ll also talk about how the MVVM pattern can be applied to our application. Beyond that, we’ll start working with the notification and persistence bits, integrating with the various hubs and other OS level hooks, and more. Stay tuned; until next time!
Additional Launch Event Info
Apr 6th
Some additional 2010 Launch Event info has been posted. If your city was not listed on the main site, try looking here:
http://www.microsoft.com/business/2010events/Highlights.aspx
Links for Tulsa and Austin are here, for those wanting to register for those South Central events, as well as other events all across the US.
.NET Rocks! 2010 Tour Comes to Dallas
Mar 12th
Microsoft and the Dallas ASP.NET User Group are proud to host the .NET Rocks! 2010 World Tour! Richard and Carl will be visiting our town on Tuesday, April 27th during the monthly Dallas ASP.NET User Group meeting. They will be putting on a 3 hour show focused around Visual Studio 2010, .NET Framework 4 and Silverlight 4. There will also be some special surprises and lots of door prizes.
Doors open at 6:00 PM for networking and a light dinner, the presentation will start at 6:30 PM
Registration for this event is FREE but space is limited so make sure you sign up today!
Trying a new theme
Jan 30th
Been a while since I tried out a new theme, so here it is. What do you think?
New Partner � DiscountASP.NET
Sep 25th
I�m thrilled to announce a new partnership with GiveCamp! Our good friends at DiscountASP.NET have agreed to start partnering with GiveCamp to offer FREE WEBSITE HOSTING to all charities and non-profits that participate in a GiveCamp event! This is great news, as many of these groups don�t have a website presence at all. I�m really looking forward to working with DiscountASP.NET in future GiveCamps!
Check out our Partner Page to see who else we value as partners of GiveCamp!
Get up to 25% off select Microsoft Certification exams
Sep 1st
In this tough economy, are you looking to get ahead? Do you want to stand out? Microsoft Certification can help you pursue a new career in IT, move from one job role to another, or become indispensible in your existing role. Microsoft Certifications are continually evaluated and updated to ensure their relevance in the marketplace. As a result, earning a certification not only helps you stay current on the latest developments in Microsoft technologies and platforms; it also enables you to demonstrate to employers your job skills.
To make it easier for you to get started, you can now take advantage of a new set of discounts that Microsoft is providing on select Microsoft Certification exams. Visit the website below to find out how to begin and to see whether the exam you�re interested in is 15%, 20% or 25% off.
This offer is available worldwide while supplies last, and you have to register, schedule and purchase your discounted exam by December 31, 2009.
SQL Azure Database CTP Available
Aug 19th
The official CTP for SQL Azure (a.k.a. SQL Data Services, a.k.a. SQL Server Data Services) has now been released into the wild! Head over to the SQL Azure Team Blog to learn more, or directly over to the SQL Azure web site to request a token and get started!
For those that don�t know, SQL Azure is a cloud-based relational database service that�s part of our Windows Azure platform. Based on SQL Server 2008, SQL Azure provides a highly-scalable cloud-based relational database for your application needs. Head over to the Windows Azure web site to learn more about Windows Azure and SQL Azure.






