Skip to content

Conversation

@brettfo
Copy link
Member

@brettfo brettfo commented May 31, 2019

As per #6912 the implicit NuGet reference to the FSharp.Core package needs to be removed from fslex.fsproj and fsyacc.fsproj. Our two options were to either try to steal the FSharp.Core.dll that's next to the running compiler, or pre-build FSharp.Core.fsproj. I opted for the latter because the first option seemed very prone to failure, and while there has been support in the past for fsc.exe to magically provide an FSharp.Core.dll, I think we'd be better served getting out of the business of implicit binary references, especially with the possibility that the LKG compiler (and therefore it's FSharp.Core.dll) and fslex.dll might not target the same TFM. While the path I took increases the initial build time, the TFM/platform will always be correct, it should be more stable and easier to diagnose any failures that may arise.

Fixes #6912.

@brettfo brettfo requested a review from KevinRansom May 31, 2019 17:38
@KevinRansom KevinRansom merged commit 4702abb into dotnet:master May 31, 2019
@brettfo brettfo deleted the source-build-packages branch May 31, 2019 18:45
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.

Update source-build to not require any FSharp.Core NuGet package for FsLex/FsYacc

2 participants