Xamarin不再识别任何项目



今天我正在从事多个项目,但没有错。突然,Xamarin不再了解任何项目。什么都没有改变。它只是说我在犯错。

using Android.OS;       
using Android.App;     
using Android.Widget;   
using Android.Graphics; 
[ActivityAttribute(Label = "Hello", MainLauncher = true)]
public class HelloApp : Activity
{
protected override void OnCreate(Bundle b)
{
    MainActivity.OnCreate(base, b);
    TextView screen;
    screen = new TextView(this);
    screen.Text     = "Hello!";
    screen.TextSize = 80;
    screen.SetBackgroundColor(Color.Yellow);
    screen.SetTextColor      (Color.DarkBlue);
    this.SetContentView(screen);
    }
}

so'B'参数名称在基本声明中有所不同。名称" MAINACTIVITY"名称在当前上下文中不存在。在这种情况下,使用关键字"基础"是无效的。

我做什么,什么(正在工作的)项目都无关紧要。没有什么可以了。有人知道怎么了?

尝试以下:

protected override void OnCreate(Bundle savedInstanceState)
{
  base.OnCreate(savedInstanceState);
}

相关内容

最新更新