Skip to content

Conversation

@dsyme
Copy link
Contributor

@dsyme dsyme commented Oct 11, 2016

This factors out MSBuild reference resolution into one file, MSBuildReferenceResolver.fs, right at the end of the compilation list. If you don't have this file, the compiler code can be built without reference to MSBuild

The "cut" point is basically the Resolve function of ReferenceResolution.fs.

The "ReferenceResolver.fs" API is far from perfect but can be iterated on from here. At least it's easy to see the points where we are choosing to have a dependency on MSBuild

This also simplifies the API implied by the cut function, removing rid of some old unused internal compiler options and not propagating so much MSBuild information around (information only used to format a tooltip).

@dsyme dsyme force-pushed the msbuild-45 branch 2 times, most recently from e4a715a to 7059ab5 Compare October 11, 2016 13:10
@dsyme
Copy link
Contributor Author

dsyme commented Oct 11, 2016

AppVeyor timed out at 1 hour - just as it was uploading results - rerunning that now - otherwise I think this will be ready to go (assuming Jenkins shows green)

PF + @"\Reference Assemblies\Microsoft\Framework\.NETFramework"


/// When targeting .NET 2.0-3.5 on Windows, we expand the {WindowsFramework} and {ReferenceAssemblies} paths manually
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We seem to be a bit iffy on support for prior to 4.0. I'm not certain that we have a consistent position. I do know we do no testing. Perhaps we should consider demanding 4.0 or up.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FSharp.Core 4.0..0.0+ requires a matching mscorlib 4.0 reference. The comment above is just out of date

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants