android bool 命名空间,c# – Xamarin – 无法找到类型或命名空间名称“App”

目前正在尝试将我的Xamarin应用程序运行到我的iPhone实时播放器时出现此错误.

"AppDelegate.cs(1,1): error: The type or namespace name 'App' could not be found (are you missing a using directive or an assembly reference?)"

我的解决方案构建没有错误,因此有点卡住.

直到我更新到最新更新后才出现这些错误.任何帮助是极大的赞赏.

App.xaml.cs:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using COCApp;

using Xamarin.Forms;

namespace COCApp

{

public partial class App : Application

{

public App()

{

InitializeComponent();

MainPage = new NavigationPage(new MainPage());

}

protected override void OnStart()

{

// Handle when your app starts

}

protected override void OnSleep()

{

// Handle when your app sleeps

}

protected override void OnResume()

{

// Handle when your app resumes

}

}

}

AppDelegate.cs

using System;

using System.Collections.Generic;

using System.Linq;

using COCApp;

using Foundation;

using UIKit;

namespace COCApp.iOS

{

// The UIApplicationDelegate for the application. This class is responsible for launching the

// User Interface of the application,as well as listening (and optionally responding) to

// application events from iOS.

[Register("AppDelegate")]

public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate

{

//

// This method is invoked when the application has loaded and is ready to run. In this

// method you should instantiate the window,load the UI into it and then make the window

// visible.

//

// You have 17 seconds to return from this method,or iOS will terminate your application.

//

public override bool FinishedLaunching(UIApplication app,NSDictionary options)

{

global::Xamarin.Forms.Forms.Init();

LoadApplication(new App());

return base.FinishedLaunching(app,options);

}

}

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值