Tuesday, November 16, 2010

How to add the References to projects ?

Each Built in or User defined Name Space contains few methods, if we want to use those methods first have to add reference to References and add using statement to the code before using Name spacing containing methods in the code.

Below one is the reference adding navigation:-
In the solution Under the specified project right click on “References” node 
Click on “Add Reference…” 
Click on Browse tab in “Add Reference” window
Select required path in look in like C:\Program Files\Reference Assemblies\Microsoft\Framework\.NetFramework\v4.0 and select required DLL and click on “OK” button

Then it displays DLL name under References folder.

In the code under namespace add this DLL name with “using” statement.

No comments:

Post a Comment