question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FSharp does not produce all packages in source-build

See original GitHub issue

It looks like recently, FSharp split its build into two solutions: FSharp.sln, which contains most of the projects, and Microsoft.FSharp.Compiler.sln, which seems to only package the files produced by FSharp.sln. I’m looking at https://github.com/dotnet/fsharp/pull/12628

In source build, we were previously building only FSharp.sln which produced all of the packages we needed. However now we are missing Microsoft.Fsharp.Compiler.nupkg when we build only FSharp.sln, which is expected given the changes.

We have tried to produce both solutions with the following syntax in SourceBuild.props:

<InnerBuildArgs>$(InnerBuildArgs) '/p:Projects="$(InnerSourceBuildRepoRoot)\FSharp.sln;$(InnerSourceBuildRepoRoot)\Microsoft.FSharp.Compiler.sln;"'</InnerBuildArgs>

The problem here is that these solutions end up building concurrently even though they depend on each other. Microsoft.FSharp.Compiler is looking for fsc.dll before FSharp is finished producing it.

How should this dependency be managed, and how does the Microsoft build of fsharp work today? Do the two solutions need to build separately, one after the other? Are there any simple changes that we could make to solve this problem for source build?

@KevinRansom @crummel @MichaelSimons

see also https://github.com/dotnet/source-build/issues/2873

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
KevinRansomcommented, Jun 3, 2022

@MichaelSimons , okay I have a fix, that should work well for you.

1reaction
vzarytovskiicommented, May 20, 2022

@MichaelSimons I will fix it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Packages without the F# Project Structure
I have a very simple command line script that does not justify having a complex project structure with a bunch of project, paket...
Read more >
What's new in F# 6 - .NET Blog
We're excited to announce the availability F# 6, shipping with .NET 6 RC2 and Visual Studio 2022 RC2. It's the next step to...
Read more >
[dotnet-host] Cannot build when referencing 'FSharp.Data'
I tried to build a small F# project that makes use of FSharp.Data. ... The build failed. Please fix the build errors and...
Read more >
Dotnet build linux. The answer you're looking for is basically
On linux, mono's msbuild may need to be installed as a separate package. . dll> ... The following commands do not produce a...
Read more >
Dotnet build example. NET CLI, open your favorite terminal i
Containers NuGet package is currently required to publish non-Web ... In this file, you can see that all RIDs, except for See Commands...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found