Skip to content

Instantly share code, notes, and snippets.

@mastoj
Last active August 29, 2015 14:03
Show Gist options
  • Save mastoj/b2589ea5d8da160ae769 to your computer and use it in GitHub Desktop.
Save mastoj/b2589ea5d8da160ae769 to your computer and use it in GitHub Desktop.
#r "../packages/FsPickler.Json.0.9.6/lib/net45/FsPickler.Json.dll"
#r "../packages/FsPickler.0.9.6/lib/net45/FsPickler.dll"
#r "../packages/Newtonsoft.Json.6.0.3/lib/net45/Newtonsoft.Json.dll"
open Nessos.FsPickler
open Nessos.FsPickler.Json
open Nessos.FsPickler.Combinators
open System.IO
let res y =
let jsp = FsPickler.CreateJson()
use textWriter = new StringWriter()
jsp.Serialize(textWriter, y)
textWriter
#I "../packages/Newtonsoft.Json.6.0.3/lib/net45"
#r "Newtonsoft.Json.dll"
#I "../packages/FsPickler.Json.0.9.6/lib/net45"
#r "FsPickler.Json.dll"
#I "../packages/FsPickler.0.9.6/lib/net45"
#r "FsPickler.dll"
open Newtonsoft.Json
open Nessos.FsPickler
open Nessos.FsPickler.Json
open System.IO
module Pickling =
type Y =
{ ya : string
yb : int }
let res a =
let pick = JsonPickler()
pick.PickleToString a
@mastoj
Copy link
Author

mastoj commented Jul 15, 2014

Full error message is: "FsPicklerTest.fsx(19,20): error FS0074: The type referenced through 'Nessos.FsPickler.ITypeNameConverter' is defined in an assembly that is not referenced. You must add a reference to assembly 'FsPickler'."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment