title: Shared Xamarin.Forms - The type or namespace name 'App' does not exist in the namespace
body: <p>I'm making my way through <a href="https://elearning.xamarin.com/forms/xam120/" rel="nofollow noreferrer">this</a> Xamarin.Forms tutorial. I built a Shared project according to the instructions, but I'm getting an error on a file that I was given to download, that is supposed to let my app access the dialing function on Android.</p>
  
  <p>This is the full error I'm getting: </p>
  
  <pre><code>CS0234  The type or namespace name 'App' does not exist in the namespace 'Phoneword.Android' (are you missing an assembly reference?)   Phoneword.Android
  </code></pre>
  
  <p>I found a few similar-sounding errors online, including <a href="https://stackoverflow.com/a/36347788/3739453">this one</a>, but none of the solutions worked for me. The general trend seemed to be that the App class lives in the Shared project, so a broken reference might be causing the problem, but I removed the Android reference to the Shared project, and a bunch of other errors came up, and then I re-added it, and all the errors but the "App" one went away. So I don't think it's a reference issue.</p>
  
  <p><strong>PhoneDialer.Droid.cs</strong> (I marked the line with the error)</p>
  
  <pre><code>using Android.Content;
  using System.Linq;
  using System.Threading.Tasks;
  using Android.Telephony;
  using Xamarin.Forms;
  using Phoneword.Android;
  
  using Uri = Android.Net.Uri;
  [assembly: Dependency(typeof(PhoneDialer))]
  
  namespace Phoneword.Android
  {
      public class PhoneDialer : IDialer
      {
          public Task&lt;bool&gt; DialAsync(string number)
          {
              var context = Android.App.Application.Context; //&lt;=ERROR
              ...
          }
          ...
      }
  }
  </code></pre>
  
  <p>When I change the line to <code>Phoneword.App.Application.Context</code>, "App" doesn't throw any error, but then I get another error saying that "Application" doesn't exist.</p>
  
  <p>Anyone have any idea what the problem could be?</p>
  
  <p>I uploaded the solution to github so all my code is visible: <a href="https://github.com/joeymorano/Phoneword" rel="nofollow noreferrer">https://github.com/joeymorano/Phoneword</a></p>