The following topic details how to create a new Silverlight project in Microsoft Visual Studio 2008 and in Microsoft Expression Blend 3.
In Visual Studio 2008
Complete the following steps to create a new Silverlight project in Microsoft Visual Studio 2008:
- Select File | New | Project to open the New Project dialog box in Visual Studio 2008.
- In the Project types pane, expand either the Visual Basic or Visual C# node and select Silverlight.
- Choose Silverlight Application in the Templates pane.
- Name the project, specify a location for the project, and click OK.
- Next, Visual Studio will prompt you for the type of hosting you want to use for the new project.
- In the NewSilverlight Application dialog box, select OK to accept the default name and options and to create the project.
In Expression Blend 4
Complete the following steps to create a new Silverlight project in Microsoft Expression Blend 4:
- Select File | New Project to open the New Project dialog box in Blend 4.
- In the Project types pane, click the Silverlight node.
- In the right pane, choose Silverlight Application + Website in the Templates pane to create a project with an associated Web site.
- Name the project, specify a location for the project, choose a language (Visual C# or Visual Basic), and click OK.
Your new project is created.
The Project
The solution you contains two projects, YourProject and YourProject.Web:
- YourProject: This is the Silverlight application proper. It produces a XAP file that gets downloaded to the client and runs inside the Silverlight plug-in.
- YourProject.Web: This is the host application. It runs on the server and provides support for the Silverlight application.
See Also