fsprojects / FSharp.Configuration

The FSharp.Configuration project contains type providers for the configuration of .NET projects.
http://fsprojects.github.io/FSharp.Configuration/
Other
114 stars 63 forks source link

Not working with ASP.NET Core 2.0 targeting net462 #129

Closed irfancharania closed 6 years ago

irfancharania commented 6 years ago

I am using FSharp.Configuration to read in a config.yaml file with

The type provider works perfectly fine from the F# library project, as well as a "classic" ASP.NET MVC project targeting .NET 4.6.2.

I get a runtime error on the ASP.NET Core project stating: 'System.IO.FileNotFoundException' in [F# Project] ("Could not load file or assembly 'SharpYaml, Version=1.6.1.0, Culture=neutral, PublicKeyToken=1ced8108e942bc02' or one of its dependencies. The system cannot find the file specified.").

Is this related to this issue? Is there a workaround?

irfancharania commented 6 years ago

Installing the SharpYaml nuget package to the ASP.NET Core project solved the issue