let count = Subject.behavior(0)
count.OnNext(count.Value + 1)
But compiler failed with error:
error FSHARP: The type referenced through ‘System.Reactive.Subjects.BehaviorSubject`1’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘System.Reactive’
My guess would be that since FSharp.Control.Reactive is just an F# style wrapper for another package, you also need to add the original package to your project. Have you added the System.Reactive package?
./src/App.fs(6,13): (6,32) error FSHARP: The type referenced through ‘System.Reactive.Subjects.BehaviorSubject`1’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘System.Reactive’. (code 74)
./src/App.fs(11,1): (11,16) error FSHARP: Lookup on object of indeterminate type based on information prior to this program point. A type annotation may be needed prior to this program point to constrain the type of the object. This may allow the lookup to be resolved. (code 72)
./src/App.fs(14,5): (14,17) error FSHARP: Lookup on object of indeterminate type based on information prior to this program point. A type annotation may be needed prior to this program point to constrain the type of the object. This may allow the lookup to be resolved. (code 72)