Xamarin.Droid:Resource.Designer.cs在更新后损坏 [英] Xamarin.Droid: Resource.Designer.cs broken after update

查看:61
本文介绍了Xamarin.Droid:Resource.Designer.cs在更新后损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Xamarin for Android,并且正在使用支持库.该项目工作正常,但是将支持存储库从23.1.1.1更新为23.3.0后,Resource.Designer.cs损坏了.

I'm using Xamarin for Android and I'm using the support libraries. The project work fine, but after updating the support repositories from 23.1.1.1 to 23.3.0, the Resource.Designer.cs is broken.

注意:我确实删除了文件,我通过手动删除objbin文件夹进行了完整的重建,并确保我的所有Android软件包都是最新的(Android SDK Manager).

Note: I did delete the file, I did a complete rebuild with manually deleting the obj and bin folders and I made shure all of my Android packages are up to date (Android SDK Manager).

这些错误都是public static void UpdateIdValues()函数的一部分,基本上基本上都是这样的:

The errors are all part of the public static void UpdateIdValues() function all basically all look like this:

'Resource.Color' does not contain a definition for 'design_textinput_error_color'

使用代码:

global::Acr.UserDialogs.Resource.Color.design_textinput_error_color = global::EVM.Droid.Resource.Color.design_textinput_error_color;

任何想法,此错误来自何处以及如何解决?感谢您的帮助.

Any Idea, where this error is coming from and how to fix it? Thanks for your help.

推荐答案

同一问题,在Visual Studio社区2015中,这似乎是一个版本问题,这是一个古老的资源定义,现在已被_dark和_light取代.在解决此刻,我已经添加了缺失值,将其从黑暗版本中复制出来.似乎Xamarin包含一些旧版本(例如API 22),而不是最新版本(API 23) Flavio

Same issue, with visual studio comunity 2015, it seems to be a version problem, this was an old resorce definition, that now has been substituted with _dark and _light. At the moment to solve I've added the missed values copying them from the dark version. Seems that Xamarin includes some old version (e.g API 22) instead of the latest one (API 23) Flavio

找到另一个快速解决方案,从.droid项目的nuGet软件包管理器中删除所有已安装的软件包,然后添加与xamarin相关的最新可用版本(我已经在用户电源外壳程序中从nuget页面的依序依次添加它们xamarin https://www.nuget.org/packages/Xamarin.Forms/) 构建所有...这就是窍门!

Find another quick solution, from nuGet package manager of the .droid project remove ALL the installed packages, then add the latest available release of xamarin related (I've user power shell adding them one by one in order of dependency from the nuget page of xamarin https://www.nuget.org/packages/Xamarin.Forms/) Build all...and this does the trick!

这篇关于Xamarin.Droid:Resource.Designer.cs在更新后损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆