I have been working on several projects this week flawlessly. I didn't change anything ( I didn't even restart Xamarin or my pc) but suddenly Xamarin says there are faults in all my projects and all projects I create.
[ActivityAttribute(Label = "Hello", MainLauncher = true)]
public class HalloApp : Activity
protected override void OnCreate(Bundle b)
TextView screen; screen = new TextView(this); screen.Text = "Hello!"; screen.TextSize = 80; screen.SetBackgroundColor(Color.Yellow); screen.SetTextColor (Color.DarkBlue); this.SetContentView(screen); }
Most simple example is this. I am so sure there is nothing wrong with this. But I get the following error messages:
1. b. parameter name differs in base declaration.
2. Mainactivity: The name 'mainactivity' does not exist in the current context.
3. base: error. use of keyword 'base' is not valid in this context.
Has anyone got any idea if there is some setting that suddenly has gone missing or something?