How to: Add a Project Output Reference
To deploy non-SharePoint project assemblies (or .xap files in Silverlight projects) to SharePoint, add them as a project output reference.
This process creates a solution build dependency between the two projects. Projects associated with project output references are built before the SharePoint project is built and deployed.
To add a Project Output Reference
Load a solution that contains at least one SharePoint project and one non-SharePoint project.
Click the SharePoint project item's node in Solution Explorer.
In the Properties window, click the Project Output References property and then click the ellipsis () button next to it.
The Project Output References dialog box appears.
In the Project Output References dialog box, click the Add button.
In the properties pane of the dialog box, click the drop-down arrow next to the Deployment Type property and select an appropriate value for the non-SharePoint item you are referencing, such as ElementFile.
Click the drop-down arrow next to Project Name and select the name of the non-SharePoint project item.
Click OK.
See Also
Tasks
How to: Mark Controls as Safe Controls
Concepts
Providing Packaging and Deployment Information in Project Items