colinbull / StrongNetCoreConfig

True strongly type Net core configuration access
6 stars 4 forks source link

FSharp.Data does not work #3

Open vasily-kirichenko opened 6 years ago

vasily-kirichenko commented 6 years ago

After adding

type CommonConfiguration = JsonProvider<"appsettings.json">

my Giraffe project failed to compile with:

Program.fs(26, 28): [FS1108] The type 'String' is required here and is unavailable. You must add a reference to assembly 'System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.

colinbull commented 6 years ago

Humm, I can't replicate this. Can you share the *.fsproj and the paket files, if you are using that. Have you tried the sample app in the repository?