Export (0) Print
Expand All

Add or remove a reference

This page applies to WPF and Silverlight 2

You can add a reference to any .NET Framework 3.5 assembly, Silverlight 2 assembly or compatible COM library DLL to a Microsoft Expression Blend project. For example, you might add a reference for any of the following reasons:

  • Add a reference to a custom control or user control that you can then select from the Asset Library (after building your project), and then draw on the artboard. For an example, see Try it: Create a WPF user control or Try it: Create a custom WPF control.

  • Add a referent to an existing WPF project in your solution. This is useful to keep functionality separated into reusable projects that you can build into your active project.

  • Add a reference to a CLR object data source. For an example, see Try it: Create a CLR object data source.

  • Add a reference to a compatible COM library DLL. For more information about COM interoperability with .NET Framework 3.5, see the Interoperability topics in the .NET Framework section of MSDN.

  • Add a reference to the Silverlight 2 SDK assemblies that include system controls such as the TabControl. For more information, see Import a custom control by adding a reference.

  1. On the Project menu, click Add Reference, if you want to add an assembly (.dll or .exe) to your project.

  2. In the Add Reference dialog box, browse to the location of the assembly or COM library that you want to add to the current project, select that item, and then click Open.

    The item is not added to your project, but a reference to it is added in the References node under Files in the Project panel.

  3. Build your project to incorporate the referenced item and to make any new controls available from the Asset Library Cc294670.0224cabd-5da1-4e01-bddd-4a647401a098(en-us,Expression.10).png.

    If the referenced item is updated externally, you will need to rebuild in Expression Blend to pick up the changes.

Cc294670.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

  1. Add a new or existing project to your solution.

  2. On the Project menu, click Add Project Reference, and then select the name of your project from the list that appears.

  3. Build your project to incorporate the referenced project and to make any new controls available from the Asset Library Cc294670.0224cabd-5da1-4e01-bddd-4a647401a098(en-us,Expression.10).png.

    If the referenced item is updated externally, you will need to rebuild in Expression Blend to pick up the changes.

Cc294670.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

  • In the References node under Files in the Project panel, right-click the reference that you want to remove, and then click Remove from project.

Cc294670.alert_note(en-us,Expression.10).gifNote:

Using the Remove from project option only removes the reference from the project; it does not delete the referenced item from your computer.

Cc294670.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

Community Additions

ADD
Show:
© 2014 Microsoft