How to add System.Data.OracleClient Reference to new project in 2010?

I’ve created new project in 2010. Now I want to add oracle client reference (System.Data.OracleClient) to my project.
My code is below.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.OracleClient;

namespace SampleApp
    class Program
        static void Main(string[] args)
            System.Console.WriteLine("Hello world!");
            System.Console.WriteLine("New Line");
            System.Console.Write("no new line");


But in above code, the System.Data.OracleClient Reference is not added!
How can I add the reference?
Thanks in advance.

Edit by Girish
To add reference, I’ve done the following steps.

  1. In project menu
  2. I’ve clicked on Add References
  3. then Add references window is appeared.
  4. In that window, I’ve searched for System.Data.OracleClient reference in .NET tab, in COM tab, in Project tab, but not found!
  5. So I’ve added reference manually in Browse tab. The reference is added into project, but when I us using code, the reference is not shown.

Source: .net

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.