Xamarin with Visual Studio: Resource.Id does not contain a definition for "..."
<p>I created a <strong>Cross-Plattform</strong>-Application-Project (<strong>Native Shared</strong>) with Xamarin (up to date) and Visual Studio 2015.</p>

<p>I followed the tutorial "Hello Android" and finished it, but when building the project I´ll get this error message: </p>

<blockquote>
  <p>Severity  Code    Description Project File    Line    Suppression State
  Error CS0117  <strong>'Resource.Id' does not contain a definition for
  'CallButton'</strong>    HelloApp.Droid  C:\Users\username\documents\visual studio
  2015\Projects\HelloApp\HelloApp\HelloApp\HelloApp.Droid\MainActivity.cs   26  Active</p>
</blockquote>

<p>(Same for the other Widgets)</p>

<p>I tried different API-Levels/Reinstalled sdks and packages, as stated in <a href="https://stackoverflow.com/questions/38103271/cs0117-c-sharp-resource-id-does-not-contain-a-definition-for-phonenumbertext">this Question</a>,but it wont work for me. I installed Android Build Tools for different API-Levels and deinstalled others, but this wont change a thing.</p>

<p>I also tried the <a href="https://stackoverflow.com/questions/35953540/visual-studio-2015-xamarin-android-getting-resource-id-does-not-contain-a">solution</a> stated in this question and tried to clean and rebuild the solution several times, i also deleted the zips in the xamarin-zips folder. The Resource.designer.cs gets compiled every time and seems fine... Also the Build Action is correct for all files.</p>

<p>Can someone please help?</p>

<p>PS: On Mac it works perfectly fine, but i want to develop on Windows with Visual Studio...</p>

<p>Link to the tutorial:
<a href="https://developer.xamarin.com/guides/android/getting_started/hello,android/hello,android_quickstart/" rel="nofollow noreferrer">https://developer.xamarin.com/guides/android/getting_started/hello,android/hello,android_quickstart/</a></p>

<p>For detailed information, here my source code:</p>

<p><strong>AndroidManifest.xml</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto"&gt;
    &lt;uses-sdk android:minSdkVersion="17" android:targetSdkVersion="23" /&gt;
    &lt;uses-permission android:name="android.permission.CALL_PHONE" /&gt;
    &lt;application android:label="HelloApp.Droid"&gt;&lt;/application&gt;
&lt;/manifest&gt;
</code></pre>

<p><strong>PhonewordTranslator.cs</strong></p>

<pre><code>using System.Text;
using System;

namespace Core
{
    public static class PhonewordTranslator
    {
        public static string ToNumber(string raw)
        {
            if (string.IsNullOrWhiteSpace(raw))
                return "";
            else
                raw = raw.ToUpperInvariant();

            var newNumber = new StringBuilder();
            foreach (var c in raw)
            {
                if (" -0123456789".Contains(c))
                    newNumber.Append(c);
                else
                {
                    var result = TranslateToNumber(c);
                    if (result != null)
                        newNumber.Append(result);
                }
                // otherwise we've skipped a non-numeric char
            }
            return newNumber.ToString();
        }
        static bool Contains(this string keyString, char c)
        {
            return keyString.IndexOf(c) &gt;= 0;
        }
        static int? TranslateToNumber(char c)
        {
            if ("ABC".Contains(c))
                return 2;
            else if ("DEF".Contains(c))
                return 3;
            else if ("GHI".Contains(c))
                return 4;
            else if ("JKL".Contains(c))
                return 5;
            else if ("MNO".Contains(c))
                return 6;
            else if ("PQRS".Contains(c))
                return 7;
            else if ("TUV".Contains(c))
                return 8;
            else if ("WXYZ".Contains(c))
                return 9;
            return null;
        }
    }
}
</code></pre>

<p><strong>Main.axml</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;
    &lt;TextView
        android:text="Enter a Phoneword"
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/textView1" /&gt;
    &lt;EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/PhoneNumberText"
        android:text="1-855-XAMARIN" /&gt;
    &lt;Button
        android:text="Translate"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/TranslateButton" /&gt;
    &lt;Button
        android:text="CallButton"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/CallButton" /&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p><strong>MainActivity.cs</strong></p>

<pre><code>using System;
using Android;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;

namespace Phoneword
{
    [Activity(Label = "Phoneword", MainLauncher = true)]
    public class MainActivity : Activity
    {
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource

           //** ERROR IN THE NEXT 4 LINES!!! **
            SetContentView(Resource.Layout.Main);

            EditText phoneNumberText = FindViewById&lt;EditText&gt;(Resource.Id.PhoneNumberText);
            Button translateButton = FindViewById&lt;Button&gt;(Resource.Id.TranslateButton);
            Button callButton = FindViewById&lt;Button&gt;(Resource.Id.CallButton);

            callButton.Enabled = false;

            // Add code to translate number
            string translatedNumber = string.Empty;

            translateButton.Click += (object sender, EventArgs e) =&gt;
            {
                // Translate user's alphanumeric phone number to numeric
                translatedNumber = Core.PhonewordTranslator.ToNumber(phoneNumberText.Text);
                if (String.IsNullOrWhiteSpace(translatedNumber))
                {
                    callButton.Text = "Call";
                    callButton.Enabled = false;
                }
                else
                {
                    callButton.Text = "Call " + translatedNumber;
                    callButton.Enabled = true;
                }
            };

            callButton.Click += (object sender, EventArgs e) =&gt;
            {
                // On "Call" button click, try to dial phone number.
                var callDialog = new AlertDialog.Builder(this);
                callDialog.SetMessage("Call " + translatedNumber + "?");
                callDialog.SetNeutralButton("Call", delegate {
                    // Create intent to dial phone
                    var callIntent = new Intent(Intent.ActionCall);
                    callIntent.SetData(Android.Net.Uri.Parse("tel:" + translatedNumber));
                    StartActivity(callIntent);
                });
                callDialog.SetNegativeButton("Cancel", delegate { });

                // Show the alert dialog to the user and wait for response.
                callDialog.Show();
            };

            // Our code will go here
        }
    }
}
</code></pre>

<p><strong>Resource.designer.cs</strong></p>

<pre><code>#pragma warning disable 1591
//------------------------------------------------------------------------------
// &lt;auto-generated&gt;
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.42000
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// &lt;/auto-generated&gt;
//------------------------------------------------------------------------------

[assembly: global::Android.Runtime.ResourceDesignerAttribute("HelloApp.Droid.Resource", IsApplication=true)]

namespace HelloApp.Droid
{


    [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")]
    public partial class Resource
    {

        static Resource()
        {
            global::Android.Runtime.ResourceIdManager.UpdateIdValues();
        }

        public static void UpdateIdValues()
        {
        }

        public partial class Attribute
        {

            static Attribute()
            {
                global::Android.Runtime.ResourceIdManager.UpdateIdValues();
            }

            private Attribute()
            {
            }
        }

        public partial class Drawable
        {

            // aapt resource value: 0x7f020000
            public const int Icon = 2130837504;

            static Drawable()
            {
                global::Android.Runtime.ResourceIdManager.UpdateIdValues();
            }

            private Drawable()
            {
            }
        }

        public partial class Id
        {

            // aapt resource value: 0x7f050003
            public const int CallButton = 2131034115;

            // aapt resource value: 0x7f050001
            public const int PhoneNumberText = 2131034113;

            // aapt resource value: 0x7f050002
            public const int TranslateButton = 2131034114;

            // aapt resource value: 0x7f050000
            public const int textView1 = 2131034112;

            static Id()
            {
                global::Android.Runtime.ResourceIdManager.UpdateIdValues();
            }

            private Id()
            {
            }
        }

        public partial class Layout
        {

            // aapt resource value: 0x7f030000
            public const int layout1 = 2130903040;

            // aapt resource value: 0x7f030001
            public const int Main = 2130903041;

            static Layout()
            {
                global::Android.Runtime.ResourceIdManager.UpdateIdValues();
            }

            private Layout()
            {
            }
        }

        public partial class String
        {

            // aapt resource value: 0x7f040001
            public const int app_name = 2130968577;

            // aapt resource value: 0x7f040000
            public const int hello = 2130968576;

            static String()
            {
                global::Android.Runtime.ResourceIdManager.UpdateIdValues();
            }

            private String()
            {
            }
        }
    }
}
#pragma warning restore 1591
</code></pre>