Caliburn.Micro HelloScreens sample build error

Topics: Getting Started
Feb 13, 2013 at 3:09 PM
Getting this error when I try to build the Caliburn.Micro sample project "Caliburn.Micro.HelloScreens" from http://caliburnmicro.codeplex.com

Error: The type 'TDocument' must be a reference type in order to use it as parameter 'T' in the generic type or method 'Caliburn.Micro.Conductor'

TDocument is defined in the the class DocumentWorkspace as

public abstract class DocumentWorkspace<TDocument> : Conductor<TDocument>.Collection.OneActive, IDocumentWorkspace where TDocument : INotifyPropertyChanged, IDeactivate, IHaveDisplayName
{ }
Feb 13, 2013 at 6:31 PM
Samples are fixed and compiling again.
Feb 13, 2013 at 6:51 PM
Thanks for the quick fix. Can you explain the reson for the error? Jut curious
Feb 14, 2013 at 6:59 AM
Edited Feb 14, 2013 at 7:01 AM
the class keyword was missing from the abstraction to tell the DocumentWorkspace that the TDocument was a derived object class.

public abstract class DocumentWorkspace<TDocument> : Conductor<TDocument>.Collection.OneActive, IDocumentWorkspace where TDocument : class, INotifyPropertyChanged, IDeactivate, IHaveDisplayName
{ }