"System.Collections.ObjectModel.ObservableCollection`1" not defined

"System.Collections.ObjectModel.ObservableCollection`1" not defined

Old forum URL: forums.lhotka.net/forums/t/7871.aspx


dbaechtel posted on Sunday, October 25, 2009

I just loaded the source code from cslalightcs-3.7.1-090928.zip into VS2010B2. There is a line in Reference.svcmap as follows:

CollectionMapping TypeName="System.Collections.ObjectModel.ObservableCollection`1" Category="List"

VS2010 says:

Warning 1 Custom tool warning: The type 'System.Collections.ObjectModel.ObservableCollection`1' could not be found.  Ensure that the assembly containing the type is referenced.  If the assembly is part of the current development project, ensure that the project has been built. C:\Projects\cslalightcs\Csla\Service References\WcfPortal\Reference.svcmap 

Where is this "System.Collections.ObjectModel.ObservableCollection`1" ?


RockfordLhotka replied on Sunday, October 25, 2009

Are you sure you have Microsoft .NET 3.5 SP1 properly installed?

ObservableCollection<T> is a type Microsoft introduced with .NET 3.0 (come to think of it), which is a replacement for BindingList<T> when building WPF apps.

Copyright (c) Marimer LLC