Skip to content

Fix overbuilding fsharp & define solution to build in script for VMR #18491

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

Merged

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Apr 23, 2025

Fixes dotnet/source-build#5005
Fixes dotnet/source-build#5071
Contributes to dotnet/dotnet#176

FSharp was building two solutions in the VMR on Windows which resulted in the inner-build building the same thing but in parallel. The builds each take 7-8 minutes. Fix that by introducing a productBuild switch (which is already exposed in the Arcade scripts) and condition which solution to build on it.

Remove the /p:Projects property from DotNetBuild.props.
Also delete the source-build logic from Build.ps1 as source-build isn't supported on Windows today.

VMR validation build: dotnet/dotnet#188

FSharp was building two solutions in the VMR on Windows which resulted
in the inner-build building the same thing but in parallel. The builds
each take 7-8 minutes. Fix that by introducing a productBuild switch
(which is already exposed in the Arcade scripts) and condition
which solution to build on it or the existing source-build switch.

Remove the /p:Projects property from DotNetBuild.props.
Copy link
Contributor

✅ No release notes required

ViktorHofer added a commit to dotnet/dotnet that referenced this pull request Apr 23, 2025
@ViktorHofer ViktorHofer changed the title Fix overbuilding fsharp & define solution to build in script Fix overbuilding fsharp & define solution to build in script for VMR Apr 23, 2025
@ViktorHofer ViktorHofer marked this pull request as ready for review April 23, 2025 17:02
@ViktorHofer ViktorHofer requested review from a team as code owners April 23, 2025 17:02
@ViktorHofer ViktorHofer requested a review from mmitche April 23, 2025 17:03
@ViktorHofer ViktorHofer enabled auto-merge (squash) April 23, 2025 17:22
@ViktorHofer
Copy link
Member Author

ViktorHofer commented Apr 23, 2025

@dotnet/fsharp-team-msft this PR fixes build failures inside the VMR. We were essentially building fsharp twice on Windows - unintentionally. Can you please review, approve and merge? TIA

@github-project-automation github-project-automation bot moved this from New to In Progress in F# Compiler and Tooling Apr 24, 2025
@ViktorHofer ViktorHofer merged commit 394083c into main Apr 24, 2025
33 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in F# Compiler and Tooling Apr 24, 2025
@ViktorHofer ViktorHofer deleted the FixOverBuildingFSharpInVMRAndSpecifyProjectToBuildInScript branch April 24, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
3 participants