Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Are you missing a using directive or an assembly reference" in visual studio 2013

Good Day everyone. I'm developing a Cross Platform Application in Xamarin.Forms when I encounter this error "Are you missing a using directive or an assembly reference". My project is working fine before I install a Nuget package (Circle Image View in Xamarin), but when I uninstall it (without changing a single line of code) the said error started to appear. I tried to Build, Rebuild it but still it does not work. Anything I can do to fix this? Any help will be appreciated. Thanks a lot.

These are the errors:

Error 1:

The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)

Error 2:

The type or namespace name 'Application' could not be found (are you missing a using directive or an assembly reference?)

Error 3:

The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)

Error 4:

The type or namespace name 'ContentPage' could not be found (are you missing a using directive or an assembly reference?)

like image 241
Jaycee Evangelista Avatar asked Jun 08 '16 09:06

Jaycee Evangelista


1 Answers

It sounds like you're missing your Xamarin.Forms packages.

Can you expand your Packages directory in the Solution Explorer, and see if it's in there?


Try this :

  1. Select the project in the Solution tab
  2. Select Project along the top menu
  3. Select Add Nuget Packages...
  4. Do a search for Xamarin.forms
  5. Add Xamarin.forms to that project
like image 82
Yksh Avatar answered Sep 18 '22 00:09

Yksh