Vb.net MVVM Light RaiseProperty更改错误

Vb.net MVVM Light RaiseProperty更改错误,vb.net,lambda,mvvm-light,Vb.net,Lambda,Mvvm Light,我遵循了WPF应用程序中MVVM Light库的RaisePropertyChanged示例。这似乎应该是有效的。事件代码提示似乎这样认为。但当我构建时,VisualStudio会给我一个错误,然后用浅蓝色的曲线突出显示RaisePropertyChanged。有人看到这个问题吗?我有什么明显的遗漏吗 Private _selectedServerInstance As String Property SelectedServerInstance As String Get Re

我遵循了WPF应用程序中MVVM Light库的
RaisePropertyChanged
示例。这似乎应该是有效的。事件代码提示似乎这样认为。但当我构建时,VisualStudio会给我一个错误,然后用浅蓝色的曲线突出显示
RaisePropertyChanged
。有人看到这个问题吗?我有什么明显的遗漏吗

Private _selectedServerInstance As String
Property SelectedServerInstance As String
  Get
      Return _selectedServerInstance
  End Get
  Set(value As String)
      _selectedServerInstance = value
      RaisePropertyChanged(Function() Me.SelectedServerInstance) //Error on build
  End Set
End Property

' Looks ok until I build. The Error for each line with RaisePropertyChanged using a lambda property selector is:
' error BC30518: Overload resolution failed because no accessible 'RaisePropertyChanged' can be called with these arguments:
对于RaiseProperty更改: 程序集“System.Linq.Expressions”、“System.Runtime”、“System.ObjectModel”所需的引用


检查项目中的引用。

System.Runtime和System.ObjectModel不在要选择的引用列表中。这是因为它们是“facade”引用,很少被使用,除非在mvvm light的疯狂案例中