The type or namespace name 'Xamarin' missing error in Xamarin Studio

后端 未结 16 1647
陌清茗
陌清茗 2020-12-15 04:21

I\'m getting this error:

\"MyApp\\App.cs(7,7): Error CS0246: The type or namespace name \'Xamarin\' could not be found (are you missing a using di

16条回答
  •  一整个雨季
    2020-12-15 04:34

    MihaMarkic's post here led me to the right answer. For each project in your solution you'll need to do the following:

    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

    This is the workflow that got it working on my Mac. I'm not sure what the exact steps are for you PC users out there.

提交回复
热议问题