Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

"The type or namespace name 'App' does not exist in the namespace...

$
0
0

Apologies if this has been asked and answered elsewhere - I searched quite a bit before posting.

I created a totally new project (Blank App, Xamarin.Forms Shared) via Visual Studio 2015 (running on Win7 64-bit). I named it "MyMobile." I'm not doing anything fancy, just letting the template do all the work, and create the default Shared App, along with the corresponding Android and iOS apps. It doesn't seem to recognize MyMobileNamespace.App() below. Throws this error:

CS0234 "The type or namespace name 'App' does not exist in the namespace 'MyMobile' (are you missing an assembly reference?)"

protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
global::Xamarin.Forms.Forms.Init(this, bundle);
LoadApplication(new MyMobileNamespace.App());
}

Again, this is code that was produced automatically by VS/Xamarin - I haven't touched a thing.

Suggestions - seems like it should work out of the box, without any modifications...


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>