Skip to content

[All] Fix --noRestore not skipping MSBuildCracker restores (#4527)#4548

Merged
MangelMaxime merged 3 commits into
mainfrom
fix/no-restore-upstream
Apr 20, 2026
Merged

[All] Fix --noRestore not skipping MSBuildCracker restores (#4527)#4548
MangelMaxime merged 3 commits into
mainfrom
fix/no-restore-upstream

Conversation

@MangelMaxime

Copy link
Copy Markdown
Member

Replace #4528 because I could not push to the fork repo...

randrag and others added 2 commits April 20, 2026 20:58
The --noRestore CLI flag is parsed and stored in CrackerOptions.NoRestore,
but MSBuildCrackerResolver.mkOptionsFromDesignTimeBuildAux hardcodes
/restore in the dotnet msbuild arguments, ignoring the flag.

This causes sequential per-project restores during project cracking,
adding significant time to every Fable compilation even when the user
explicitly passes --noRestore.

Conditionally include /restore based on options.NoRestore.
@MangelMaxime MangelMaxime changed the title Fix --noRestore not skipping MSBuildCracker restores (#4527) [All] Fix --noRestore not skipping MSBuildCracker restores (#4527) Apr 20, 2026
@MangelMaxime
MangelMaxime merged commit be62592 into main Apr 20, 2026
23 checks passed
@MangelMaxime
MangelMaxime deleted the fix/no-restore-upstream branch April 20, 2026 19:16
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.

2 participants