Last active
August 29, 2015 14:03
-
-
Save mastoj/b2589ea5d8da160ae769 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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'."