Jagamisviis:


Unity QuickStarts

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:

Note

Unity QuickStarts are only available if you install the standalone Unity MSI. The Unity MSI is available at patterns & practices - Unity on CodePlex.

Building the QuickStarts

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

  1. Ensure Unity Source Code is installed.
  2. Open the source code folder in Windows Explorer or from the Start menu.
  3. 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.
  4. Double-click the Visual Studio solution file for the QuickStart.
  5. Visual Studio opens, displaying the solution file. Click the Run button on the toolbar, or press F5, to start the application.