Skip to content

Instantly share code, notes, and snippets.

View aaron-comyn's full-sized avatar

Aaron Winston Comyn aaron-comyn

View GitHub Profile
@aaron-comyn
aaron-comyn / compilation_error.fsx
Last active June 8, 2018 11:24
Compilation error in FSharp Interactive (FSI), when using Roslyn
(*
Compilation error in FSI
------------------------
The following source compiles as expected and works in a DotNetCore application.
Run in FSI it will complain about missing types between the Roslyn libraries.
Tested on the last years worth of Roslyn releases, VS2017, F# Interactive version 10.1.0 for F# 4.1
#r "packages/Owin/lib/net40/Owin.dll"
#r "packages/Microsoft.Owin/lib/net45/Microsoft.Owin.dll"
#r "packages/Microsoft.Owin.Cors/lib/net45/Microsoft.Owin.Cors.dll"
#r "packages/Microsoft.Owin.Hosting/lib/net45/Microsoft.Owin.Hosting.dll"
#r "packages/Microsoft.Owin.Security/lib/net45/Microsoft.Owin.Security.dll"
#r "packages/Microsoft.AspNet.SignalR.Core/lib/net45/Microsoft.AspNet.SignalR.Core.dll"
#r "packages/Microsoft.AspNet.Cors/lib/net45/System.Web.Cors.dll"
#r "packages/Newtonsoft.Json/lib/net45/Newtonsoft.Json.dll"
#r "packages/Suave/lib/net40/Suave.dll"
module Adrienne.Main
#r "YamlDotNet.dll"
open System
open System.IO
open System.Collections.Generic
open System.Text
open YamlDotNet.RepresentationModel
open System.Xml