Repository navigation
Restore once and evaluate each project once when cracking - #390
Merged
Merged
Conversation
Every design time build ran its own /restore with a TargetFramework global property. A restore given a TargetFramework writes the assets file for that framework only, and the main project's restore passed its framework on to the referenced projects. A referenced project with several target frameworks was left with an assets file for one of them, and the next `dotnet build --no-restore` of another framework failed with NETSDK1005. The parallel builds also restored overlapping projects at the same time. The main project is now restored once, without a TargetFramework, which covers its references. The restore runs while the references are walked, and the design time builds start after it. The walk now asks MSBuild for the project references, the reference assembly setting and the target framework in one evaluation, so a project costs one evaluation instead of three. Release 0.17.2 and bump the fantomas tool to 9.0.0-alpha-001.
The dotnet CLI blocks on sending telemetry at exit, which can take seconds on a restricted network. Telplin starts a `dotnet msbuild` process for the restore and two for every project, so the wait adds up. DOTNET_CLI_TELEMETRY_OPTOUT is set to 1 unless the environment already has a value for it. Taken from fable-compiler/Fable#5136 Release 0.17.3.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every design time build ran its own /restore with a TargetFramework
global property. A restore given a TargetFramework writes the assets
file for that framework only, and the main project's restore passed its
framework on to the referenced projects. A referenced project with
several target frameworks was left with an assets file for one of them,
and the next
dotnet build --no-restoreof another framework failedwith NETSDK1005. The parallel builds also restored overlapping projects
at the same time.
The main project is now restored once, without a TargetFramework, which
covers its references. The restore runs while the references are
walked, and the design time builds start after it.
The walk now asks MSBuild for the project references, the reference
assembly setting and the target framework in one evaluation, so a
project costs one evaluation instead of three.