我最近將解決方案更新爲Xamarin.Forms(2.3.4.267)的最新nuget包。現在,我收到一個異常,而我跑我在Android模擬器(X86)計劃Xamarin在UWP工作時形成Android NoSupportedException
Unhandled Exception:
System.PlatformNotSupportedException: Operation is not supported on this platform.
隨着這段代碼:
public virtual void AddRange(IEnumerable<T> collection)
{
if (collection == null) throw new ArgumentNullException(nameof(collection));
foreach (var i in collection) Items.Add(i);
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
}
,特別是,行
foreach (var i in collection) Items.Add(i);
這裏是一個github鏈接來測試問題 https://github.com/hugoterelle/posexclusive-droid-notsupported
我不能轉載您的問題,請您發表更完整的代碼來重現此問題? –
@ YorkShen-MSFT對於延遲抱歉,我需要時間清理解決方案以提供github回購。你可以在編輯的問題中找到它。 – hugoterelle