Xamarin直播球员失误

时间:2017-12-11 04:34:35

标签: c# xamarin xamarin.ios xamarin.forms

我创建了默认的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?)

此外,这些文件都在共享项目中。

任何人都有类似的问题吗?

由于

马特

2 个答案:

答案 0 :(得分:2)

如果有任何安慰,我有完全相同的问题。以下是我尝试解决问题的方法,目前取得了部分成功:

  1. 卸载/重新安装Visual Studio 2017社区预览
  2. 卸载/安装Visual Studio社区 - 当前版本
  3. 创建了一个新的Windows 10 VM并安装了Visual Studio Community 2017当前版本
  4. 根据行动要点#3,我不相信原因,如果我的装置有任何特定内容,但我很惊讶这个问题不是更广泛。

    更新(12月18日):我下载了一个现有的示例项目(https://developer.xamarin.com/samples/mobile/LivePlayer/LiveView/)并取得了一些成功。该应用程序现在通过Live Player在我的手机上运行但是我现在得到一个MONO调试器错误,我正在调查。

答案 1 :(得分:0)

截至目前: 不支持自定义渲染器。 不支持效果。 不支持具有自定义可绑定属性的自定义控件。 不支持嵌入式资源(即,在PCL中嵌入图像或其他资源)。 不支持第三方MVVM框架(即Prism,Mvvm Cross,Mvvm Light等)

https://docs.microsoft.com/en-us/xamarin/tools/live-player/limitations