【发布时间】:2016-04-01 03:01:44
【问题描述】:
我引用了这个解决方案/问题The type or namespace name 'Xamarin' missing in xamarin studio
但是仍然无法从新的通用应用项目向导构建应用。
Severity Code Description Project File Line Suppression State
Error CS0117 'Resource.Attribute' does not contain a definition for 'actionBarSize'
Project.Droid C:\dev\Project.Droid\Resources\Resource.Designer.cs 29 Active
Xamarin 新手有什么想法吗?
【问题讨论】:
-
您使用的是哪个版本的 Xamarin.Forms?其次,引用了各个 Google 支持库的哪个版本?
-
2.1.0.6529 从我通过 NuGet 添加时开始安装。我不确定是否安装了 google 支持库。
-
您可以粘贴
Resource.desginer.cs文件的内容吗?也许是要点。 -
我们会在找到一行代码后:
public const int actionBarSize = 2130772085;如果您的Resource.designer.cs文件中没有类似的元素,请尝试通过 NuGet 重新安装 Xamarin.Forms并删除Resource.designer.cs文件。尝试再次编译,文件将被隐藏,将其重新添加到您的解决方案中。 -
这里是要求的要点。 gist.github.com/ilopez/6064f808c50cc6179e37686fbb9cdee7我去寻找提到的代码。
标签: c# xamarin visual-studio-2015