我创建了默认的Xamarin项目,可以很好地连接到Mac - >构建 - >在Mac上的模拟器中查看,但是当我尝试从Visual Studio运行Live Payer时,我收到以下错误:
\Services\MockDataStore.cs(1,1): error: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
\App.xaml.cs(1,1): error: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
\Services\MockDataStore.cs(1,1): error: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
\ViewModels\AboutViewModel.cs(1,1): error: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
\ViewModels\BaseViewModel.cs(1,1): error: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
\ViewModels\ItemsViewModel.cs(1,1): error: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
\Views\MainPage.xaml.cs(1,1): error: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
\Views\MainPage.xaml.cs(1,1): error: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
\Views\AboutPage.xaml.cs(1,1): error: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
\Views\AboutPage.xaml.cs(1,1): error: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
\Views\ItemDetailPage.xaml.cs(1,1): error: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
\Views\ItemDetailPage.xaml.cs(1,1): error: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
\Views\ItemsPage.xaml.cs(1,1): error: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
\Views\ItemsPage.xaml.cs(1,1): error: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
\Views\NewItemPage.xaml.cs(1,1): error: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
此外,这些文件都在共享项目中。
任何人都有类似的问题吗?
由于
马特
答案 0 :(得分:2)
如果有任何安慰,我有完全相同的问题。以下是我尝试解决问题的方法,目前取得了部分成功:
根据行动要点#3,我不相信原因,如果我的装置有任何特定内容,但我很惊讶这个问题不是更广泛。
更新(12月18日):我下载了一个现有的示例项目(https://developer.xamarin.com/samples/mobile/LivePlayer/LiveView/)并取得了一些成功。该应用程序现在通过Live Player在我的手机上运行但是我现在得到一个MONO调试器错误,我正在调查。
答案 1 :(得分:0)
https://docs.microsoft.com/en-us/xamarin/tools/live-player/limitations