Skip to content

Instantly share code, notes, and snippets.

Comparison between netstandard1.6 and netstandard2.0 for FSharp.Core

NOTE i have the .net core sdk 1.0 installed, and lots of previous NETStandard.Library packages in global nuget cache. This may impact or not (dotnetcli fill the cache anyway at first use). need to test a clean install too, to check same download size apply (ihmo important for CI/first use/etc), but maybe is not important***

.net sdk used 2.0.0-preview1-005899

To minimize differences, i used a normal C# console app and added FSharp.Core as package reference

This is also a normal scenario, when a C# project use an F# library

@enricosada
enricosada / fsharp and .net core sdk status.md
Last active March 29, 2020 13:13
.NET Core sdk, msbuild, fsharp, fsc, etc

.NET Core sdk, msbuild, fsharp, fsc, etc

How to finish/polish the integration between msbuild based .net core sdk and f# (fsc, FscTask, etc)

This doc contains current issues i known and a proposed solution (already implemented in a PR, and works) on how to fix these (obv ihmo).

AFAIK all the solution i choose are based on where dotnet/sdk, microsoft/msbuild and dotnet/cli are going with development, and updated to latest release (preview4), and vnext in development now.

TL;DR

@enricosada
enricosada / README
Created November 17, 2016 09:37
dotnet-migrate f#
See
@enricosada
enricosada / Program.fs
Last active November 10, 2016 16:01
.net project.json and pcl
open FsCheck
open System
open System.Threading
open System.Reflection
open Microsoft.FSharp.Reflection
open Microsoft.FSharp.Collections
open System.Collections.Generic
open Prop
bin/
obj/
project.lock.json
BenchmarkDotNet.Artifacts/
bin/
obj/
.vscode/
project.lock.json
@enricosada
enricosada / dotnetcli_fsharp_helpers.fsx
Last active March 23, 2016 16:09
update nuspec inside nupkg with .net core dependencies
//TODO do it!
@enricosada
enricosada / log.txt
Created January 5, 2016 16:15
AV running build.cmd
*** Building dotnet tools version 1.0.0.1451987123 - Debug ***
*** Checking Pre-Reqs ***
*** Restoring Tools and Packages ***
*** Installing dotnet stage 0 ***
dotnet_install: Preparing to install .NET Tools to D:\github\cli\scripts\.dotnet_stage0\win7-x64
dotnet_install: Downloading dotnet-win-x64.latest.zip from https://dotnetcli.blob.core.windows.net/dotnet/dev/Binaries/Latest
dotnet_install: Extracting zip
dotnet_install: The .NET Tools have been installed to D:\github\cli\scripts\.dotnet_stage0\win7-x64\cli!
dotnet_install: Add 'D:\github\cli\scripts\.dotnet_stage0\win7-x64\cli\bin' to your PATH to use dotnet
*** Downloading DNX ***
@enricosada
enricosada / README.md
Last active August 29, 2015 13:57
stream bug, mono vs dotnet

repro for bug fsharp/fsharp#246

on fsi, stream_mono.txt and stream_dotnet.txt

compiled streambug.fs with mono and dotnet disassembled to streambug_mono.cil and streambug_dotnet.cil

@enricosada
enricosada / expected UserMention.txt
Last active August 29, 2015 13:56
FSharp.Data test
class JsonProvider
static member AsyncGetSamples: () -> JsonProvider+Root[] async
let f = new Func<_,_>(fun (t:TextReader) -> JsonDocument.CreateList(t, ""))
TextRuntime.AsyncMap((IO.asyncReadTextAtRuntimeWithDesignTimeRules @"<SOURCE_DIRECTORY>\..\FSharp.Data.Tests\Data" "" "TwitterStream.json"), f)
static member AsyncLoad: uri:string -> JsonProvider+Root async
let f = new Func<_,_>(fun (t:TextReader) -> JsonDocument.Create(t, ""))
TextRuntime.AsyncMap((IO.asyncReadTextAtRuntime false @"<SOURCE_DIRECTORY>\..\FSharp.Data.Tests\Data" "" uri), f)
static member GetSamples: () -> JsonProvider+Root[]