在Xamarin中Postsharp INotifyPropertyChanged

时间:2015-04-01 15:36:21

标签: xamarin postsharp

我想用xamarin尝试PostSharp。我安装了新的PostSharp 4.1。然后我被添加到项目中,我想添加NotifyPropertyChanged方面,但我在Visual Studio中没有建议。所以我尝试从nuget安装PostSharp模式模型,但那会失败,我做得不好?

 Could not install package 'PostSharp.Patterns.Model.Controls 4.1.10'. You are trying to install this package into a project that targets 'portable-net45+win+wpa81+MonoAndroid10+xamarinios10+MonoTouch10', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

1 个答案:

答案 0 :(得分:0)

您需要使用PostSharp.Patterns.Model个包而不是PostSharp.Patterns.Model.Controls。后者仅在.NET上受支持,并包含Undo-Redo WPF控件。