Closed adamchester closed 8 years ago
I think the problem is that we (in FSF) add references for the currently running runtime, but not for the runtime of the assembly we analyze. It's not that easy to solve this problem because we would need to be able to somehow read the interesting metadata from the project (see my comment here which resulted from the same underlying problem).
I think you can make this work by adding the required references yourself, or by compiling the project again for .net45 and use those assembly with FSF (which is what I usually do). Paket already adds the references the correct way so building for another framework is quite simple.
Is this a problem I need to raise with F# formatting?
Yes
Thanks @matthid, I have now raised a new issue here https://github.com/tpetricek/FSharp.Formatting/issues/346
I created a new blank ProjectScaffold, added an F# PCL (Profile259) Library (VS 2015), added
member x.TestMe = new System.IO.StringWriter()
, then executedbuild
. It fails to build.I don't fully understand why, but it seems that F# Formatting doesn't know what to do with the PCL types... Do I need to add some references somewhere? Is this a problem I need to raise with F# formatting, or here?
The relevant build error follows: