title: Unable to add the reference of the Microsoft.Online.Administration.Automation.PSModule dll to my project in Visual Studio 2010
body: <p>A very strange thing is happening and I don't know what's causing this issue. I have a project in which I need to execute some PowerShell scripts to get some values of a SharePoint site. To do this I had installed, Windows Azure Active Directory Module. Now, the scripts are getting successfully executed from within the powershell.</p>
  <p>Next thing, we have to run the same scripts from within the code(C#). To do this we had to add the reference of the dll, Microsoft.Online.Administration.Automation.PSModule. The problem is this dll is placed at the location,</p>
  <pre><code>C:\Windows\System32\WindowsPowerShell\v1.0\Modules\**MSOnline**
  </code></pre>
  <p>Though, I can browse this location using in Windows Explorer, when I try to browse the same in my Add Reference window, it's not showing the MSOnline folder!</p>
  <p>I just want to know why a directory that can be browsed using the Explorer becomes invisible to the VS Add Reference window. My VS is running in Administrator mode.</p>
  <p>Following is the ScreenShot of the folder, MSOnline that can be viewed in the explorer,
  <img src="https://i.stack.imgur.com/fffV1.png" alt="enter image description here" /></p>
  <p>And this is the ScreenShot of the same directory from the Add Reference window
  <img src="https://i.stack.imgur.com/jMg6E.png" alt="enter image description here" /></p>
  <p>You can clearly see, its throwing the FileNotFound error. I would just like to know the reason of this weird behaviour.
  Thanks</p>