Hello, my name is David Shoemaker and I am one of the developers of Silverlight for Windows Embedded (SWE). In this blog entry I am going to walk you through the basic setup of the Windows Embedded Compact 7 CTP and getting your first SWE enabled image up and running.
I assume you have Visual Studio 2008 SP1, some flavor of Virtual PC*, Blend 3 and the CTP installed. If not, go back to the previous blog entry by David Franklin and install the CTP.
*For Windows 7 you can get XP Mode and Virtual PC from http://www.microsoft.com/windows/virtual-pc/download.aspx
Open Visual Studio (if this is the first time you have run VS with PB installed there will be some configuration dialogs about default settings).
You should now be in VS with the solution open. We didn't just build at the end of the wizard because we want to add a couple of things to the image before we build.
Select the Catalog Items View tab (if not visible you can use View -> Other Windows -> Catalog Items View).
Enter "Silverlight for Windows Embedded" into the search box and click the search button. This will bring you to the SWE options in the catalog. Open that and select the SWE checkbox. This brings in the SWE component for later use.
We are going to bring the xamlperf sample into the image to give us some instant gratification. As this sample is not in the catalog we need to add the sysgen flag manually.
To verify everything is set as expected you can do:
Now do a build. Build -> Build Solution (or F7) and wait a while. Depending on your machine this could take a while.
At the end of the build you will get output like:
BLDDEMO: BUILDMSG: Directory of C:\WINCE700\OSDesigns\Blog1\Blog1\RelDir\VirtualPC_x86_Release
BLDDEMO: BUILDMSG: 07/09/2010 11:52 AM 40,528,451 NK.bin
BLDDEMO: BUILDMSG: 1 File(s) 40,528,451 bytes
BLDDEMO: BUILDMSG: 0 Dir(s) 293,800,824,832 bytes free
BLDDEMO: BUILDMSG: cebase build complete.
BLDDEMO: BUILDMSG: BldDemo ended at 11:52:39.73 on Fri 07/09/2010 (exit code 0)
BuildLogs: BUILDMSG: Exiting: BldDemo1.bat (result code 0).
BuildLogs: BUILDMSG: C:\WINCE700\build.log
BuildLogs: BUILDMSG: C:\WINCE700\build.out
BuildLogs: BUILDMSG: C:\WINCE700\build.wrn
Blog1 - 0 error(s), 723 warning(s)
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
I am using virtual PC (Win Xp mode on Windows 7) so I need to create a virtual machine to be my target device.
To use this from Platform Builder you need to make a connection in VS
We are now ready to download our first image.
This has three samples (brought in by the SYSGEN_SAMPLEXAMLPERF sysgen).
Double Click Bounce, Bubbles or Carousel to see the samples in action. Clicking in the running app will close it.
We now have an image up and running which allows you to try out SWE applications.