Add or remove a reference
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.
To add a reference
On the Project menu, click Add Reference, if you want to add an assembly (.dll or .exe) to your project.
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.
Build your project to incorporate the referenced item and to make any new controls available from the Asset Library.
If the referenced item is updated externally, you will need to rebuild in Expression Blend to pick up the changes.
Back to top
To add a reference to another project
On the Project menu, click Add Project Reference, and then select the name of your project from the list that appears.
Build your project to incorporate the referenced project and to make any new controls available from the Asset Library.
If the referenced item is updated externally, you will need to rebuild in Expression Blend to pick up the changes.
Back to top
To remove a reference
- 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.
Note
Using the Remove from project option only removes the reference from the project; it does not delete the referenced item from your computer.
Back to top