The type or namespace “app” could not be found

Sometimes after creating a brand new Xamarin Forms project and trying to build it, I was getting the error described in the title and I didn’t know why as the project was almost empty(apart from the sample data that it contained).Another thing I noticed was that this error was appearing on both of the platform projects(Android and IOS).

Solution

On my end, the issue relied on the fact that each of the platform projects(Android and IOS) were missing a reference to the actual PCL assembly, so in order to fix it, I had to go on each of the projects -> Add Reference -> select PCL dll. With this, the errors disappeared.

hope it helps.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s