The instructions in this QuickStart topic are directed at the Silverlight solution. Though there are many similarities, some instructions in this topic, such as references to Program.cs or Program.vb, do not apply to the Silverlight project. The following QuickStart applications demonstrate some of the key features of Unity:
- Walkthrough: The Unity StopLight QuickStart. This QuickStart demonstrates dependency injection techniques. This is the only QuickStart project in the Silverlight solution.
- Walkthrough: The Unity Event Broker Extension QuickStart. This QuickStart provides an example extension for the Unity container. The Silverlight solution does no include the Event Broker QuickStart.
|Unity QuickStarts are only available if you install the standalone Unity MSI. The Unity MSI is available at patterns & practices - Unity on CodePlex.|
The QuickStarts ship as source code, which means that you must compile them before you can run them. You can use Visual Studio 2005 to build the QuickStarts. If you open the QuickStarts in Visual Studio 2008, you will be prompted to upgrade the projects to the Visual Studio 2008 format. If you decide to upgrade them, you may want to keep a copy of the original Visual Studio 2005 projects so that you can refer to them and use them if required.
To build the Unity QuickStarts
- Ensure Unity Source Code is installed.
- Open the source code folder in Windows Explorer or from the Start menu.
- Open the QuickStarts folder, open the CS folder (for C#) or VB folder (for Visual Basic .NET), and then open the StopLight or EventBroker folder.
- Double-click the Visual Studio solution file for the QuickStart.
- Visual Studio opens, displaying the solution file. Click the Run button on the toolbar, or press F5, to start the application.