-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating reference documentation fails for PCL Profile259 and System.IO #346
Comments
I'm hitting this same issue in my libraries - types completely "self contained" work fine, but if a type uses or exposes anything out of the framework, you get these errors. |
Current workaround is to build the library again against net45 and use the result for FSharp.Formatting as we currently have not found a good way to detect the required Framework. |
@matthid Is there a way to have the engine add a reference? I think if you were to add the reference to the PCL proxy libs, it'd probably fix it (that's frequently required for testing and other projects), as the types would then exist there. |
Yes but we need to detect the framework of the given dlls to add the correct framework references. We obviously cannot just Assembly.Load the dll as it might be imcompatible with what we are running. And I want to avoid an additional reference like Mono.Ceceil for various reasons. Besides that FCS should be able to provide the information, as it already contains an IL-Reader (however I couldn't find a way jet). We cannot just add the PCL proxy libs additionally to the regular framework assemblies as that doesn't work (Edit: I think I actually tried that already :( ). |
Closing this old issue (spring cleaning) |
Originally raised here: fsprojects/ProjectScaffold#211
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?
The relevant build error follows:
The text was updated successfully, but these errors were encountered: