我正在尝试在 Xamarin Studio 上遵循 Stuart 的 N+1 中的 FirstDemo 教程。
我收到以下异常:
[mono] Unhandled Exception:
[mono] Cirrious.CrossCore.Exceptions.MvxException: Error finding resource ids for MvxBinding - please make sure ResourcesToCopy are linked into the executable ---> System.InvalidCastException: Cannot cast from source type to destination type.
[mono] at Cirrious.MvvmCross.Binding.Droid.ResourceHelpers.MvxAndroidBindingResource..ctor () [0x000ed] in /Users/stuartlodge/Documents/GitHub/Mvx/MvvmCross/Cirrious/Cirrious.MvvmCross.Binding.Droid/ResourceHelpers/MvxAndroidBindingResource.cs:57
[mono] --- End of inner exception stack trace ---
[mono] at Cirrious.MvvmCross.Binding.Droid.ResourceHelpers.MvxAndroidBindingResource..ctor () [0x00142] in /Users/stuartlodge/Documents/GitHub/Mvx/MvvmCross/Cirrious/Cirrious.MvvmCross.Binding.Droid/ResourceHelpers/MvxAndroidBindingResource.cs:72
[mono] at Cirrious.MvvmCross.Binding.Droid.ResourceHelpers.MvxAndroidBindingResource.Initialise () [0x0000b] in /Users/stuartlodge/Documents/GitHub/Mvx/MvvmCross/Cirrious/Cirrious.MvvmCross.Binding.Droid/ResourceHelpers/MvxAndroidBindingRe
我从以下引用导入XS-iOS-Mac/bin/Release/Mvx/Droid/
:
- Cirrious.CrossCore.dll
- Cirrious.CrossCore.Droid.dll
- Cirrious.MvvmCross.Binding.dll
- Cirrious.MvvmCross.Binding.Droid.dll
- Cirrious.MvvmCross.dll
- Cirrious.MvvmCross.Droid.dll
- Cirrious.MvvmCross.Localization.dll
在你问之前,是的,我有MvxBindingAttributes.xml
目录Resources/values
,是的,它被标记为Android Resource
.
提前致谢。