|
Managing assembly references Topic updated 2-2-2007 |
|
Every GenWise project has references to .NET assemblies that it needs for the compilation process. These references determine the pre-built functionality that is available to our GenWise project. A BO-Layer project for example, references core components for data processing that have been built into the Microsoft.NET 2.0 framework. Additionally it references core components of the NHibernate framework.
Opening the Project References page You can manage a project's references by opening the page with its list of references. To open this page right-click the project node in the Project Explorer and choose References:
The project references of an AspNet project can be opened in the same manner.
The list of references The image below shows an example of the list of references of a freshly created BO-Layer project.
Notice that Generated is checked for all assemblies in the list. This means that these references have been generated by GenWise. If you manually add references these will appear with Generated unchecked. You cannot check or uncheck the checkboxes in this column. Also notice that CopyLocal is unchecked for System, System.Data, System.Web and System.Xml. These assemblies are part of the Microsoft.NET 2.0 core framework, and they reside in the Global Assembly Cache, which is a mechanism to make these assemblies available to all .NET projects in the system from a single directory. The NHibernate, Iesi.Collections and Castle.DynamicProxy assemblies have CopyLocal checked, which means that they are copied to the bin directory of our GenWise project.
Adding a reference You can add assembly references to your GenWise projects from the References page. To do so, just click the Add Reference button at the bottom of the page, browse to the assembly you need and open it. The assembly you select will then be added to the list:
Custom assembly references are clearly distinguishable by their row color, also notice that Generated is unchecked.
Removing a reference You can remove assembly references simply by activating the row (by clicking the row header at the left) and hitting the Delete key.
Caution: take care not to remove essential assemblies, the delete function does not ask for confirmation.
|